Pausing the game
Okysho
Member Posts: 158
oh boy do I feel silly. Well with the addition of the new pause function I figured it'd be a good idea to go ahead and add the new easy function to my game. Well I can get it to pause the game, now how do I get it to unpause?
T.T
T.T
Comments
(in main actor) if P is pressed and pause is false, change pause to true pause game <pause scene>
(on a blank actor on pause screen) if P is pressed and pause is true, change pause to false and unpause
This doesn't seem to work however... I'm so very confused
If you want to do it the way your doing it, your gona have to make your pause attribute a interger. So 0 will be unpause and 1 will be paused. Have a rule when p is pressed change attribute game.pause to (game.pause+1)%2
that will make it so when you press the the key it willl change from 0 to 1 and if oause is 1 it will change back to 0 all in the one expression and keep toggling between them
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
I KNOW this...
And yet every time I see it, all I can picture is Chewy on Hoth, having just destroyed an imperial probe droid!
Weird, eh? :O
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io