OOPS! Sorry I forgot to mention you will need to stop the animation for the example to work. if you have a single sprite with a single 50 frame animation. and the goal is to set a frame and hold it. you can do it two ways. The easy way is to change the speed of the animation to 0 in the Animation dialog properties. "Left hand side menu while editing a sprites animations".
The other way is to add and action after you create and set the frame number. I would suggest using this way , only if you have a reason to sometimes play the animation and sometimes not. Because this way you will have to use Sprite start Animation in some other event when you wish it to play. Every X seconds.-------------------------> system create object "sprite" layer 0 x=0 y=0
-------------------------> sprite set frame =round(random(49))
-------------------------> sprite stop animation The above is also the answer if you are using 50 animations instead of frames. in that case i would suggest just using an action to turn off the animation. Mostly because my mind would go numb if I had to open and edit 50 animations just to change a speed variable.
