GameMaker Touhou Engine   Home   Downloads   Documentation


A script that fires a single bullet without any delay.

Returns: id of the created bullet. (Integer)


_BULLET_CREATE_INSTANT(bullet, e_x, e_y, dir, spd, accel, max_spd, sangl, spr, deff)


Name Value Significance
bullet* <object> The bullet to fire.
e_x <integer> The X-coordinate to fire the bullet from.
e_y <integer> The Y-coordinate to fire the bullet from.
dir <integer(0-359)> The direction to fire the bullet in.
spd <integer> The bullet's movement speed.
accel <real> The bullet's acceleration.
max_spd <integer> The bullet's maximum/minimum movement speed.
sangl <boolean> true: The bullet's sprite will rotate to match it's direction of movement. false: The bullet's sprite will not rotate regardless of movement direction.
spr** <sprite> The bullet's sprite.
deff** <sprite> The sprite of the particle to create when the bullet is destroyed.

*Can be set to noone for the script to create an instance of _ENEMY_BULLET_PARENT instead.

**Can be set to noone for the script to ignore them.


Create an instance of the given bullet at the given position, set it's parameters according to the given ones.