GameMaker Touhou Engine   Home   Downloads   Documentation

_MOVE_OBJECT()


A primitive script that moves an object to the edge of a circle with the given radius, in a specified direction.


Returns: Void


Syntax:


_MOVE_OBJECT(ob, am, dir)

Arguments:


Name Value Significance
ob <object> The object to move.
am <real> The radius of the circle mentioned above.
dir* <integer(0-7)> The direction to move in.

*Works like a clock where 0 is 12 o' clock and every subsequent number is 1.5 hours apart.


Actions:


Increase or decreases ob's X and Y coordinates according to am depending on the given direction.