0
Respuestas

rotate object multiple times?

Melissa Lind hace 11 años actualizado por Alin Alexandru Matei hace 10 años 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!!!


Respuesta

Respuesta
Respuestas

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!

Respuesta
Respuestas

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.