主题:  关于精灵闪烁的问题,请教。

dobula

职务:普通成员
等级:1
金币:0.0
发贴:4
#12003/11/11 16:27:36
我在制作中需要一个精灵闪烁几次(比如4次),写一个行为,设每隔1秒闪烁一次,但不知出错在哪里,望高手指正,或提出更好的解决方法。

property tnum
on mouseup me
repeat with tnum = 1 to 4
startTimer
repeat while the timer < 60
-- waiting for time
end repeat
sprite(the currentSpriteNum).visible=not sprite(the currentSpriteNum).visible
end repeat
end



草原风

职务:版主
等级:5
金币:13.0
发贴:3489
#22003/11/12 16:06:13
直接用动画制作最省力   



D计划-混沌

职务:管理员
等级:6
金币:15.2
发贴:3528
#32003/11/12 17:32:06
property tnum
on mouseup me
repeat with tnum = 1 to 4
startTimer
repeat while the timer < 60
-- waiting for time
end repeat
sprite(the currentSpriteNum).visible=not sprite(the currentSpriteNum).visible
updatestage
end repeat

end



dobula

职务:普通成员
等级:1
金币:0.0
发贴:4
#42003/11/12 20:12:20
谢谢!