GameMaker Touhou Engine   Home   Downloads   Documentation

_MOVE_ROTATE_AROUND()


A script that rotates an object around another one by a certain amount.


Returns: Void


Syntax:


_MOVE_ROTATE_AROUND(center, spd, distance, obj)

Arguments:


Name Value Significance
center <object> The object to use as the center point.
spd <integer(0-359)> The angle of the arc the object should move along.
distance <real> The distance between the center point and the object to move.
obj* <object> The object to move.

*Must have a local variable named "_ORBIT". This variable signifies the current arc angle between the objects starting position and it's current one in relation to center.


Actions:


Move obj along the circle designated by the center point and distance according to obj's _ORBIT. Increase obj's _ORBIT by spd.