Fangames > Programming Questions
Spinning Cherry?
RandomFangamer:
--- Quote from: Zurai on April 25, 2015, 02:03:35 AM ---
Never do that! It takes way to much time. To make an object rotate around it's own x/y axis just put into the step-event of that object: image_angle += x.
That means, that every step (frame) the sprite angle of that object is rotated by x. As higher x, as faster it rotates. For clockwise rotation just use "image_anglé -= 5.
Important note: The origin of the sprite as to be the centered. So double-click on the sprite and click on "center". Done!
--- End quote ---
Thanks Zurai, I may use this in my game :denMiku_v2:
Navigation
[0] Message Index
[*] Previous page
Go to full version