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


 
llScaleTexture函数与示例
[ 2007/7/14 13:21:00 | By: 梦翔儿 ]
 
llScaleTexture 这个函数是用来设置物品上贴图的循环次数的.下面是示例,不懂地看注释吧.

//llScaleTexture
//llScaleTexture(float horizontal,float vertical,integer size);
//如果integer size值为ALL_SIDES为所有面,3为前面,0为顶,1为底,2左,3前,4右
default
{
    state_entry()
    {
        llScaleTexture(0.2,0.2,ALL_SIDES);  //show texture very close
    }

    touch_start(integer total_number)  //when touched
    {
        llScaleTexture(1.0,1.0,ALL_SIDES);  //show texture like normal
            llSleep(2);  //wait 2 seconds;
        llScaleTexture(2.0,2.0,ALL_SIDES); //text repeat twice
            llSleep(2);  //wait 2 seconds
        llScaleTexture(4.0,4.0,ALL_SIDES); //text repeat four times
            llSleep(2);  //wait 2 seconds;
       
     llResetScript();           
    }
}

 
 
  • 标签:llScaleTexture second life 
  • 发表评论:
    载入中。。。

     
     
     

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

    Powered by Oblog.