0
Є відповідь

rotate object multiple times?

Melissa Lind 10 років тому оновлено Alin Alexandru Matei 10 років тому 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!!!


Відповідь

Відповідь
Є відповідь

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!

Відповідь
Є відповідь

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.