载入中。。。 'S bLog
 
载入中。。。
 
载入中。。。
载入中。。。
载入中。。。
载入中。。。
载入中。。。
 
填写您的邮件地址,订阅我们的精彩内容:


 
true and false variable,布尔变量的使用.
[ 2007/7/23 16:06:00 | By: 梦翔儿 ]
 
true and false variable,布尔变量的使用.

integer on = FALSE;  // make a variable called on

default
{
    touch_start(integer total_number) //when touched
    {
        if (on == TRUE)
        {
            llSetColor(<0,0,1>,ALL_SIDES); //make color blue
           
                on=FALSE;                   //set variable on to false
        }
        else
        {
            llSetColor(<1,0,0>,ALL_SIDES); //start object red
               
                on=TRUE;                //set variable on to true
        }
    }
}

 
 
  • 标签:true and false second life 
  • 发表评论:
    载入中。。。

     
     
     

    梦翔儿网站 梦飞翔的地方 http://www.dreamflier.net
    中华人民共和国信息产业部TCP/IP系统 备案序号:辽ICP备09000550号

    Powered by Oblog.