GameMaker Touhou Engine   Home   Downloads   Documentation

_BULLET_CREATE_STREAM()


A script that fires a stream of bullets with different speeds in the same direction.


Returns: id's of the delay clouds that are going to create the bullets. (Integer Array)


Syntax:


_BULLET_CREATE_STREAM(bullet, e_x, e_y, angle, spd, delay_am, delay_fanim, delay_sanim, accel, max_spd, b_am, spd_diff, sangl, spr, deff)

Arguments:


Name Type Significance
bullet* Reference to Object The bullet to fire. (Must inherit from _ENEMY_BULLET_PARENT)
e_x Integer The X-coordinate to fire the bullets from.
e_y Integer The Y-coordinate to fire the bullets from.
angle Integer The direction to fire the bullets in.
spd Integer The slowest bullet's movement speed.
delay_am Float The delay before firing the bullets (accepts negative values).
delay_fanim Reference to Sprite The appearing animation of the delay cloud.
delay_sanim Reference to Sprite The disappearing animation of the delay cloud.
accel Float The bullets' acceleration.
max_spd Integer The bullets' maximum/minimum movement speed.
b_am Integer The amount of bullets to fire.
spd_diff Integer The increase in speed between each subsequent bullet.
sangl Boolean Whether or not the bullets' sprites should rotate along with each bullet as they change direction.
spr** Reference to Sprite The sprite to use for the bullets.
deff** Reference to Sprite The sprite of the particle to create when the bullets are destroyed.

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

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