GameMaker Touhou Engine   Home   Downloads   Documentation

_SAVE_REPLAY


The object through which the player can save replays.


Locals:


Name Value/Default Significance
_CAN_SAVE <boolean>/(depends on player's continue count) true: The player is able to save a replay of the play session that just ended (i.e. they haven't used any continues). false: The player cannot save a replay of the last play session, only being able to return to the title screen.
_SELECTED <integer(0-1)>/0 The selected option inside the menu.

Events:


Trigger # Actions
Create 1 Set local variables to default values.
Draw 1 If the player can save a replay, draw the menu for it (a simple yes/no selection). If not, draw a prompt telling them they can't save one.
Press Left Arrow 1 Move the selection to the left if possible.
Press Right Arrow 1 Move the selection to the right if possible.
Press Z-Key 1 If the player can't or doesn't wish to save a replay, return to the title screen. Otherwise, prompt them to select/create a file and write the contents of global._REPLAY_DATA into that file before returning to the title screen.