Move To
Jump to navigation
Jump to search
Move to node moves a unit from its current position to a specified new position, following a straight line path. It also suspends the current task in that time period, acting like a Wait node. Move to node can be used on any unit, include bullets, enemies and bosses.
Parameters[edit | edit source]
Here are the parameters of move to nodes.
Parameters | Function |
---|---|
Destination | (number, number) The movement destination. This is the final position after the movement |
Frame | (number) The time it takes for the unit to move from its current position to the destination |
Mode | (number) Controls the change of speed during the movement, this can be specified as one of four movement types available, see the Movement Modes section below |
See the Movement Mode section of List of LuaSTG Constant Variables and Values for a list of movement modes that may be specified in Mode.