GameMaker Touhou Engine   Home   Downloads   Documentation

_RESPAWN_CONTROLLER


The object that respawns the player after they die.


Locals:


Name Value/Default Significance
_CREATING <boolean>/false true: The player has yet to respawn at the time of access. false: The player has respawned at the time of access.

Events:


Trigger # Actions
Create 1 Set local variables to default values. Set own position to an arbitrary point, create the player at said point.
Alarm[0] 1 If no instance of the player exists, create one at own position, set global._PLAYER_DEAD to false, set _CREATING to false.
Step 1 If the player is dead and not already set to respawn, set Alarm[0] to an arbitrary value and _CREATING to true.