I want Pause the Game with P. How make that Construct 2 know that First Press = Open Pause Menu and Second Press = Close Pause Menu.
Thank you for every Help
Any suggestions ?
a litte Push
Develop games in your browser. Powerful, performant & highly capable.
Perhaps put all the game events into a group,and disable it.Try!
Yea but how make that i can activate and deactivate with the "same Button" ?
Does that work?(I have never used pause before)
If so,
Make a global variable called "Pause" initial value =0
When clicked on pause button,make it 1
If 1 AND clicked on pause button,make it 0
If "Pause"=1 ,Disable group
If "Pause"=0,Enable group
Does that work?(I have never used pause before) If so, Make a global variable called "Pause" initial value =0 When clicked on pause button,make it 1 If 1 AND clicked on pause button,make it 0 If "Pause"=1 ,Disable group If "Pause"=0,Enable group
Hmm nothing happened, also if i only use P pressed = Timescale 0. The Game just run normaly.
I'm also curious about this. I fiddled with it a bit, trying different things but none of them worked.
Edit: I think what is happening, is that the program is recognizing "P" (or whatever button you use) being pushed constantly, so you only "see" the last step. I'm still at a loss on how to delay the recognition long enough to halt the cycle, that or make it so it only recognizes a button push once. I tried "System > Trigger once while true" to no avail. I'll give "System > Every X seconds" a go and see what happens.
Edit2: No luck.
See this capx.When p is pressed,Game is paused.
When R is pressed,Game is resumed.
Thanks for the demo, however I think OP (and what I was looking for) was P to act as a toggle for Pause.
[quote:2g4mtdfo]On P pressed [quote:2g4mtdfo]timescale = 1 : set timescale to 0
quote:2g4mtdfo]Else : set timescale to 1
Else is a system expression
OP said time scale does not work.