Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion assets/content/cookbook/Expert/05.CustomPauseAndGameOver.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class Hex_Hud extends Module

// Create and show our pause menu
final pauseSubState = new HexPauseMenu();
// Set our pause menu's camera to a special one or else the hud and other elements will appear over it
pauseSubState.camera = PlayState.instance.camPause;
PlayState.instance.shouldSubstatePause = true;
PlayState.instance.openSubState(pauseSubState);
}
Expand Down Expand Up @@ -134,4 +136,4 @@ class HexPauseMenu extends MusicBeatSubState
}
```

> Author: [Kade](https://github.com/Kade-github)
> Author: [Kade](https://github.com/Kade-github)