This就我所知。我试图制作一个Phenaniskope
bg = new BackgroundLayer
backgroundColor: "pink"
frame = new Layer
width: 250
height: 250
image: "images/phenakistoscope.png"
frame.center()
Utils.interval 1, ->
cycler = Utils.cycle([10, 20, 30, 40, 50])
frame.rotation = cycler()
答案 0 :(得分:1)
我做了一些快速修改并在评论中解释:
http://share.framerjs.com/kr6mvm4y8xcl/
基本上,你把循环器放在间隔内,所以每次都要“重置”,因此你会在旋转10时停止。
希望这有帮助!