what would be the best way to make a pause menu?
i want it so if you press P a menu floats up with Resume, Restart, Main Menu and exit
+1 to best answer
vel_save=directional_velocity;
directional_velocity=vel_save;
foleyjo wrote:Just an alternative
For Pause use 1 to equal off and 0 to equal on
Then on all your movements that need pausing multiply the total speed by pause.
When the pause button is pressed use Pause != Pause
As we all know anything multiplied by 0 is 0 and everything multiplied 1 is what ever it was in the first place.
You can also use this method to pause any timers that are active too.
Examples
directional_velocity = speed * pause
X= (x+speed) * pause
Timer += Timer_Increment * pause
Chai wrote:You can use PauseGameOn and PauseGameOff function.
These functions are in Game-editor.
it is really easy.
Users browsing this forum: No registered users and 1 guest