0
Answered

rotate object multiple times?

Melissa Lind 11 years ago updated by Alin Alexandru Matei 11 years ago 2
I want the user to be able to double tap on an object and have it rotate 90 degrees everytime they double tap, so that the object can face four different directions. Right now I'm using double tap, rotate, and it only rotates once. Any way to do this?

Thanks!!!


Answer

Answer
Answered

If you want the element to actually animate as if it is rotating, try using SpinRight with StopSpin chained after it with a "delay before" that gives the image enough time to rotate 90 degrees. If you want the image to appear at 90 degrees right away, you could use four different elements and show a different element each time the visible one is double-tapped.

Brilliant idea to use spin. Why didn't I think of that?


Big thanks!

Answer
Answered

If you want the element to actually animate as if it is rotating, try using SpinRight with StopSpin chained after it with a "delay before" that gives the image enough time to rotate 90 degrees. If you want the image to appear at 90 degrees right away, you could use four different elements and show a different element each time the visible one is double-tapped.