旋转按钮代码
要实现一个能够旋转的按钮效果,可以使用以下代码:
on mouseUp me t repeat with i = 1 to 180 t set the rotation of sprite(2) = i*30 t updatestage t end repeat tend
注:repeat with i = 1 to 180表示共旋转180次,set the rotation of sprite 2 = i*30表示每次旋转30度
下载地址
用户评论