We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267fa66 commit 1631ea0Copy full SHA for 1631ea0
1 file changed
assets/content/cookbook/Expert/05.CustomPauseAndGameOver.md
@@ -58,6 +58,8 @@ class Hex_Hud extends Module
58
59
// Create and show our pause menu
60
final pauseSubState = new HexPauseMenu();
61
+ // Set our pause menu's camera to a special one or else the hud and other elements will appear over it
62
+ pauseSubState.camera = PlayState.instance.camPause;
63
PlayState.instance.shouldSubstatePause = true;
64
PlayState.instance.openSubState(pauseSubState);
65
}
@@ -134,4 +136,4 @@ class HexPauseMenu extends MusicBeatSubState
134
136
135
137
```
138
-> Author: [Kade](https://github.com/Kade-github)
139
+> Author: [Kade](https://github.com/Kade-github)
0 commit comments