0
Z odpowiedzią

rotate object multiple times?

Melissa Lind 11 lat temu Ostatnio zmodyfikowane przez Alin Alexandru Matei 11 lat temu 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!!!


Odpowiedź

Odpowiedź
Z odpowiedzią

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!

Odpowiedź
Z odpowiedzią

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.