Rotation

From Game Editor

Revision as of 05:24, 12 October 2009 by Dst (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
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.

In 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.