1. 首页
  2. 考试认证
  3. 其它
  4. 旋转按钮代码

旋转按钮代码

上传者: 2024-07-08 06:27:56上传 PPT文件 793KB 热度 8次

要实现一个能够旋转的按钮效果,可以使用以下代码:

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度
下载地址
用户评论