#Having problem making a pause menu!

1 messages · Page 1 of 1 (latest)

wide oxide
#

i used escape to show my menu but when i again use escape to hide it, it doesnt work!
even after doing Engine.time_scale = 0. my character flashed first frame of animation when left clicked and it plays sound too!

compact merlin
wide oxide
compact merlin
#

yea

#

for the things you don't want to be paused, you can change their process_mode property

wide oxide
#

okay! so button i have to change?

compact merlin
#

yea you can change them

wide oxide
#

okay thanks very much!

#

btw i cant use escape to hide my pause menu can u might tell me why?

compact merlin
#

no i can't

#

i can't see your code

wide oxide
#

first is main game's script

#

second is pause menu script

compact merlin
#

is esc an action?

wide oxide
#

yes

compact merlin
#

it's case sensitive

#

try logging something to the console in the _on_resume_pressed() method

wide oxide
#

okay i will try

#

i logged print

compact merlin
#

ok

#

so does it get pressed?

wide oxide
#

yes

compact merlin
#

and it just doesn't get unpaused?

wide oxide
#

yup

compact merlin
#

it's from that script right

wide oxide
#

yes

#

and when i press resume

#

button

#

by clicking

#

it gets unpaused

compact merlin
#

so it does get unpaused?

wide oxide
#

yup

#

but not by clicking escape

compact merlin
#

that gets printed whne you click escape ot when you press the button?

wide oxide
#

when i press escape

#

it prints

#

its confusing fr

compact merlin
#

if you change it to print_debug is it from that specific script?

wide oxide
#

'print_debug'?

compact merlin
#

yes

wide oxide
#

waittt im so sorryyy

#

this is my keyboarddd

compact merlin
#

does it double click?

wide oxide
#

its double clicking

wide oxide
compact merlin
wide oxide
#

i didnt notice first

#

im very sorry

compact merlin
#

it's ok

wide oxide
#

but still thank you for helping

#

i appreciate it