- Return to Touhou Danmakufu: Functions
- Return to Touhou Danmakufu: Common Functions
Motion Functions
Functions which move enemies or bullets.
SetX
Set the x-coordinate.
1 Parameter
1) x-coordinate
SetY
Set the y-coordinate.
1 Parameter
1) y-coordinate
SetSpeed
Set the velocity. The enemy or bullet moves with the velocity toward the angle set by SetAngle.
1 Parameter
1) velocity
SetAngle
Set the moving direction. The enemy or bullet moves toward the angle with the velocity set by SetSpeed.
1 Parameter
1) direction
SetMovePosition01
Let it move to the coordinates with the velocity. After the arrival, the enemy will stop.
3 Parameters
1) x-coordinate
2) y-coordinate
3) velocity
SetMovePosition02
Let it move to the coordinates for the frames. After the arrival, the enemy will stop.
3 Parameters
1) x-coordinate
2) y-coordinate
3) frames
SetMovePosition03
Let it move to the coordinates with the velocity. The enemy decelerates near the goal.
4 Parameters
1) x-coordinate
2) y-coordinate
3) weight
4) max. velocity
SetMovePositionHermite
Let it move to the coordinates for the frames in the Hermite spline curve. The enemy decelerates near the goal.
7 Parameters
1) x-coordinate
2) y-coordinate
3) magnitude of the tangential vector of the beginning point
4) angle of the tangential vector of the beginning point
5) magnitude of the tangential vector of the terminal point
6) angle of the tangential vector of the terminal point
7) frames
SetMovePositionRandom01
Let it move at random in the bounding box.
7 Parameters
1) x-distance
2) y-distance
3) velocity
4) left bound
5) top bound
6) right bound
7) bottom bound
SetPlayerX
Set the player's x-coordinate.
1 Parameter
1) x-coordinate
SetPlayerY
Set the player's y-coordinate.
1 Parameter
1) y-coordinate
SetCoordinateType
Set the coordinate system of the motion functions.
1 Parameter
1) coordinate system
COODINATE_TYPE_ABSOLUTE: Absolute coordinate system (default)
COODINATE_TYPE_RELATIVE: Relative coordinate system
which origin is set by SetOrigin
COODINATE_TYPE_PARENT : Relative coordinate system
which origin is the parent enemy
SetOrigin
Set the origin for SetCoordinatesType(COODINATE_TYPE_RELATIVE);.
2 Parameters
1) x-coordinate
2) y-coordinate
- Return to Touhou Danmakufu: Functions
- Return to Touhou Danmakufu: Common Functions