#I am trying to make a pause system but

1 messages · Page 1 of 1 (latest)

spare sky
#

what doesnt happen

mighty spoke
#

when I press escape, the pauseMenuCanvas does not show up

#

paused does not become true

#

and the movement does not disable

spare sky
#

Could you try .GetKeyUp instead?

#

or GetKeyDown

mighty spoke
#

Let me try that. I've never heard of GetKeyUp

worldly crest
worldly crest
#

enable it, then through code disable it at the very start when ur game starts

#

then try to renable it the way you want to

spare sky
#

By reference, .GetKey

Returns true while the user holds down the key identified by name.```
worldly crest
#

I had this issue too, for some reason unity doesn't work with an object disabled before play

mighty spoke
worldly crest
worldly crest
#

did u enable it in the hierarchy before pressing play?

spare sky
#

Didnt GetKeyUp work? thinkies

mighty spoke
mighty spoke
mighty spoke
# spare sky How's that

if the player pauses during mid-air, he continues to be affected by physics and doesn't stop mid-air. I don't know how to make him stop mid-air anyway

worldly crest
#

the simplest solution I have for u is to set the Time to 0, this freezes everything tho

mighty spoke
#

how do I set it back to normal time afterwards

spare sky
#

Either do that or stop every other component

mighty spoke
#

if they unpause

worldly crest
#

just set it back to 1

mighty spoke
#

okay! so, Time.timeScale = 0;
right?

worldly crest
#

that should do it ya

mighty spoke
#

thanks!