Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- box = new Layer
- x: 320, y: 600, backgroundColor:"white", width: 200, height: 150
- move = (speed) ->
- box.animateStop()
- box.animate
- properties:
- rotation: box.rotation+360
- time: speed
- repeat: 999
- fast = false
- box.on Events.Click, ->
- if fast
- move(1)
- fast = false
- else
- move(5)
- fast = true
- move(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement