I have a sprite that I want to either rotate left 45deg, rotate right 45deg or do nothing and I want it to do this forever looping but in a random manner.
I can either create 3 frames, or use rotate function. but what I cant figure out is how to take advantage of the "repeateforever" action but instead of a linear sequence I would like to randomly pick a frame or rotation from the sequence list.
The only way I can think of how to do this now is to set up an action with a callback when its done .Then I randomly move the sprite and then when its done it calls a function to randomly move it again.
is that the best way?
thanks in advance