0
Respost

rotate object multiple times?

Melissa Lind fa 11 anys updated by Alin Alexandru Matei fa 11 anys 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
Respost

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
Respost

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.