GameMaker Touhou Engine   Home   Downloads   Documentation

_BULLET_CREATE_RING()


A script that fires a ring of bullets.


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


Syntax:


_BULLET_CREATE_RING(bx, by, angle, spd, delay_am, delay_fanim, delay_sanim, accel, max_spd, amount, obj, sangl, spr, deff)

Arguments:


Name Type Significance
bx Integer The X-coordinate to fire the bullets from.
by Integer The Y-coordinate to fire the bullets from.
angle Integer The starting direction of the ring.
spd Integer The bullets' 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.
amount Integer The amount of bullets within the ring.
obj* Reference to Object The bullet to fire. (Must inherit from _ENEMY_BULLET_PARENT)
sangl Boolean Whether or not the bullets' sprites should rotate along with each bullet as they changes 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.