new BHell_Emitter_Spray_Alt()
Alternating spraying emitter. Creates a series of bullets spreading in an arc from the initial position, alternating between two sets of bullets. Optionally aims towards the player.
- Source:
Extends
Methods
initialize(x, y, params, parent, bulletList)
Constructor. Additional parameters:
- n1: Number of bullets to be spawned for odd shots,
- n2: Number of bullets to be spawned for even shots.
Parameters:
Name | Type | Description |
---|---|---|
x |
||
y |
||
params |
||
parent |
||
bulletList |
- Overrides:
- Source:
move(x, y)
Moves the emitter, relative to the initialised offset.
Parameters:
Name | Type | Description |
---|---|---|
x |
New x coordinate. |
|
y |
New y coordinate. |
- Inherited From:
- Source:
shoot()
Spawns this.n bullets spreading in an arc. If this.aim is true, the arc is centered on the player.
- Overrides:
- Source:
update()
Updates the emitter's sprite and state. Called every frame. Shoots if in shooting state.
- Inherited From:
- Source:
updateCharacterFrame()
Updates the charset frame, calculating the correct offsets.
- Inherited From:
- Source: