GameMaker Touhou Engine   Home   Downloads   Documentation

_PLAYER_BULLET_PARENT


The parent object for player bullets.


Locals:


Name Value/Default Significance
_DEAD <boolean>/false true: The bullet is to be destroyed. false: The bullet shouldn't be destroyed.
_DAMAGE_VALUE <integer>/0 How much damage the bullet will deal upon contact with an enemy.
_DEATH_EFF <sprite>/noone The sprite to create a particle out of when the bullet is destroyed.

Events:


Trigger # Actions
Create 1 Set local variables to default values.
Step 1 Destroy self and create a disappearing particle with the sprite designated by _DEATH_EFF, aligning it's direction with own and giving it an arbitrary movement speed if _DEAD.
End Step 1 Call _DESTROY_IF_OUTSIDE_BOUNDS().
Collide with _ENEMY_PARENT 1 Call _DESTROY_BULLET() if the colliding enemy is not untargetable.