GameMaker Touhou Engine   Home   Downloads   Documentation

_BULLET_CREATE_ARC()


A script that fires an arc of bullets.


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


Syntax:


_BULLET_CREATE_ARC(bullet, e_x, e_y, ctr, spd, delay_am, delay_fanim, delay_sanim, accel, max_spd, b_amL, b_amR, bsp, sangl, spr, deff)

Arguments:


Name Value Significance
bullet <object> The bullet to fire. (Must inherit from _ENEMY_BULLET_PARENT or the bomb immune version of it)
e_x <integer> The X-coordinate to fire the bullets from.
e_y <integer> The Y-coordinate to fire the bullets from.
ctr <integer(0-359)> The direction to fire the bullet located at the center of the arc in.
spd <integer> The bullets' movement speed.
delay_am <real> The delay before firing the bullets (accepts negative values).
delay_fanim <sprite> The appearing animation of the delay cloud.
delay_sanim <sprite> The disappearing animation of the delay cloud.
accel <real> The bullets' acceleration.
max_spd <integer> The bullets' maximum/minimum movement speed.
b_amL <integer> The number of bullets to the left of the central bullet.
b_amR <integer> The number of bullets to the right of the central bullet.
bsp <integer(0-359)> The angle between each bullet inside the arc.
sangl <boolean> true: The bullets' sprites will rotate to match it's direction of movement. false: The bullets' sprites will not rotate regardless of movement direction.
spr <sprite> The sprite to use for the bullets.
deff <sprite> The sprite of the particle to create when the bullets are destroyed.

Actions:


Iterates from the left end of the arc to the right, call _BULLET_CREATE() for each angle incrementing by bsp.