GameMaker Touhou Engine   Home   Downloads   Documentation

_BULLET_BEHAVIOR...


Various macros used to differentiate special bullet behaviors. Below are listed the arguments/parameters that are expected to be given to bullets when adding these behaviors.

_BULLET_BEHAVIOR_CHANGE_DIR

Indicates that the bullet should change it's direction.

Arguments (in order)
The bullet's new direction.


_BULLET_BEHAVIOR_TURN

Like the previous one, but relative to the bullet's current direction.

Arguments (in order)
The angle that the bullet should turn by.


_BULLET_BEHAVIOR_TURN_TO_PLAYER

Indicates the bullet should turn towards the player.

Arguments (in order)
(none)


_BULLET_BEHAVIOR_CURVE

Indicates the bullet should begin curving.

Arguments (in order)
The angle that the bullet's direction should change by each step.
The maximum deviation from the bullet's previous direction.


_BULLET_BEHAVIOR_SPLIT

Indicates the bullet should split into other bullets and destroy itself.

Arguments (in order)
The arguments for this one are the same as for _BULLET_CREATE_ARC() in the same order, save for the X and Y coordinates which are skipped.


_BULLET_BEHAVIOR_SET_ACCEL

Indicates the bullet should begin accelerating/deccelerating.

Arguments (in order)
The bullet's new acceleration.
The bullet's new maximum/minimum speed.


_BULLET_BEHAVIOR_SET_SPEED

Indicates the bullet should change it's movement speed.

Arguments (in order)
The bullet's new speed.


_BULLET_BEHAVIOR_CHANGE_SPRITE

Indicates the bullet should change it's sprite. (also resets image_index to 0 as to avoid any issues with sprites that have multiple images)

Arguments (in order)
The bullet's new sprite.


_BULLET_BEHAVIOR_CHANGE_SPRITE (when used with curvy lasers)

Indicates the curvy laser should change the sprites used for it's segments.

Arguments (in order)
The laser's new back sprite.
The laser's new front sprite.


_BULLET_BEHAVIOR_ADD_BEHAVIORS

Indicates the bullet should add a series of new behaviors to perform afterwards.

Each argument for this behavior is an array, whose elements are the same and in the same order as for the _BULLET_ADD_BEHAVIOR() script save for the object argument. The number of arguments can vary depending on how many behaviors should be added.


_BULLET_BEHAVIOR_BOUNCE

Indicates the bullet should change it's direction as if it were being reflected off of a solid surface.

Arguments (in order)
False for horizontal, true for vertical surfaces.


_BULLET_BEHAVIOR_SET_EV_BEHAVIOR

Indicates the bullet should change it's behavior response to a given event.

The arguments in this behavior are the same and in the same order as for the _BULLET_SET_EV_BEHAVIOR() script save for the object argument.


_BULLET_BEHAVIOR_CLEAR_BEHAVIOR

Indicates the bullet should remove a behavior at the specified position in the array that stores them.

Arguments (in order)
The position at which the desired behavior is located within the bullet's _BEHAVIORS array.