Finish Game Process
Category: System
An event content that completely terminates the game process itself. Used for presentations where the player ends the game itself, such as "end the game after an ending", "end directly on game over", "end at the end of a trial version", or "after confirming 'Do you want to end the game?'".
Simple event content with no properties
This event content has no properties. Just by adding it, the game ends the moment this event content is reached.
Autosave is not triggered
Autosave is not triggered by this event content. All unsaved progress is lost. Consider prompting the player to save with Display Save Screen before termination, or design the flow to trigger autosave separately via Change Map + Finish Process.
Property List
No properties at all. The specification is that the game ends the moment it is added.
Runtime Behavior
Processing flow
- Game process termination: Calls
get_tree().quit()to completely terminate the game process - Nothing is executed afterwards: Even if there are subsequent event contents, they are not executed, and windows close immediately
Powerful side effects
This event content performs the operation of completely ending the game process. All of the following are lost:
- Unsaved progress (parts never manually saved even once)
- Open windows (menus, battles, conversations, etc.)
- Temporary presentations (BGM being played, images being displayed, etc.)
Once this event content is reached, there is no returning within the same game process. To play again, the player must start a new game.
Relationship with autosave
This event content does not trigger autosave. This is intentional design:
- Automatically saving at the timing of game termination would cause an overwrite ignoring the player's intent
- Prevents accidents such as "unknowingly ending the game, and autosave saved a bad state"
If you want to consider whether the player saved before ending the game, insert Display Save Screen immediately before this event content.
Reaching this event content = complete process termination
This is equivalent to the game-end button, Alt+F4, or the window-close button. All "end the game" functionality within this tool is executed via this get_tree().quit() (including the "Exit Game" button on the settings screen, etc.).
Typical Usage Flows
Flow 1: Termination after ending
End the game after a story ending:
- (Series of ending presentations)
- Show Text: "The End"
- Wait: 3.0 seconds
- Fade-out Screen: blacken the screen
- Finish Game Process (this event content)
Flow 2: Termination at game over
End with a "can't continue anymore" production at game over:
- Show Text: "Game Over..."
- Show Selection Window: "Load / Quit"
- (Branch to the choice "Quit")
- Finish Game Process (this event content)
Flow 3: Game end at the end of a trial version
End by announcing where to purchase the full version at the end of the trial:
- Show Text: "This is the end of the trial version. Thank you for playing."
- Show Text: "The full version can be purchased here: ..."
- Finish Game Process (this event content)
Flow 4: After game-end confirmation
End after confirming "Do you really want to end the game?":
- Show Text: "Do you want to end the game?"
- Show Selection Window: "Yes / No"
- (Branch to the choice "Yes")
- Display Save Screen: prompt for a final save
- Finish Game Process (this event content)
Typical Combinations
- Show Selection Window: Present a "Quit / Don't quit" branch
- Display Save Screen: Prompt manual save before termination
- Fade-out Screen: Darken the screen to naturally produce a feeling of termination
- Show Text: Final message before termination (e.g., "Thank you")
- Play Sound: Termination sound / jingle
- Wait: Create pauses between presentations
Related Events
- Finish Process: Ends only the event and returns to normal play (the game does not end)
- Reset Game: Reset to a state equivalent to the title screen (the game process continues)
- Display Setting Screen: The settings screen also has a "Game End" button (equivalent to this event content)
- Display Save Screen: Save guidance before termination
Related Pages
- Finish Process — be careful not to confuse with this event content
- Reset Game — a way to end that keeps the process running
Notes and Constraints
Difference between "Game End" and "Event End"
Because the names are similar, confusion is easy, but this event content and Finish Process are completely different:
| Event Content | Role |
|---|---|
| Finish Game Process | Ends the game process itself (the player closes the game and is no longer running it) |
| Finish Process | Ends only the event (the player returns to the normal play screen; the game continues) |
Use this event content when you want to "end the entire game", and Finish Process or End Event when you want to "end only this event".
Autosave is not triggered
Since autosave is not triggered by this event content, unsaved progress is lost. Inserting a presentation that prompts the player to save (Display Save Screen) before termination is a polite design.
Nothing is executed after reaching this event content
Because the game process is completely terminated, event contents placed after this event content are not executed. If you want to do something "just before game end", always place it before this event content.
Cannot be interrupted or cancelled
Because the game ends the moment this event content is reached, there is no way for the player to interrupt by saying "I'll cancel". If you want to let the player choose "whether to end", insert confirmation with Show Selection Window before this event content.
Difference from an "implicit termination" not triggered by the user
Routes such as closing the window via the OS, Alt+F4, or forced termination via Task Manager are also equivalent to get_tree().quit() (the tool-side behavior is the same). Whether or not this event content is used, the player experiences it the same way as "closed the game". The significance of using it is in the point that "game termination can be explicitly triggered as part of event design".
