Rotation

From Game Editor

Jump to: navigation, search

First, download the Sprite Maker Beta tool made by Feral: http://game-editor.com/forum/viewtopic.php?f=4&t=5869

Use it to create your rotated sprite frames, then add them as an animation.

Actor>CreateActor>ScriptEditor>

ChangeAnimationDirection("Event Actor", STOPPED);

Actor>DrawActor>Script Editor>

angle=direction(x, y, xmouse, ymouse); //test angle
animpos=angle/360*nframes;

nframes is a variable that equals the number of frames in the animation.