diff --git a/assets/content/cookbook/Expert/05.CustomPauseAndGameOver.md b/assets/content/cookbook/Expert/05.CustomPauseAndGameOver.md index 7d39e1e7..f58ad74e 100644 --- a/assets/content/cookbook/Expert/05.CustomPauseAndGameOver.md +++ b/assets/content/cookbook/Expert/05.CustomPauseAndGameOver.md @@ -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); } @@ -134,4 +136,4 @@ class HexPauseMenu extends MusicBeatSubState } ``` -> Author: [Kade](https://github.com/Kade-github) \ No newline at end of file +> Author: [Kade](https://github.com/Kade-github)