GameMaker Touhou Engine   Home   Downloads   Documentation


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

Returns: Void


_MOVE_ROTATE_AROUND(center, spd, distance, obj)


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.


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