How do I pause game

Get help using Construct 2

Post » Thu Sep 17, 2015 9:52 am

i have game
gun shooting to an Aim
i want to shoot bullets when mouse button is released
.
when i click pause button
.
time scale works fine
but bullets are spawned at Gun's Point and when i click play button all spawned bullets are fired together
.
even that when i click play button, reload button or any button
bullet is fired
.
pls help me at this point
.
.
if possible give any sample file
Image
B
72
S
42
G
48
Posts: 688
Reputation: 34,392

Post » Thu Sep 17, 2015 1:47 pm

make a boolean in your bullet Action true

and say... event: mouse is over obect pause action bullet is false
else --action bullet is true
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Fri Sep 18, 2015 4:43 am

thanks belle
.
i have solve this by
when click on pause button > deactivate "Spawn" Group
and
when click play, reload button wait 0.30 second
.
and this is working for me
.
.
pls suggest if this is not a good idea
Image
B
72
S
42
G
48
Posts: 688
Reputation: 34,392

Post » Fri Sep 18, 2015 4:47 am

means i have to give bullet boolean and true
OK
.
then
event: mouse is over object pause action bullet is false
else --action bullet is true
.
.
now question is
what it does practically
.
bullet is false, what will it do ??
make bullet invisible or disable ??



CBelle wrote:make a boolean in your bullet Action true

and say... event: mouse is over obect pause action bullet is false
else --action bullet is true
Image
B
72
S
42
G
48
Posts: 688
Reputation: 34,392


Return to How do I....?

Who is online

Users browsing this forum: donstathemonsta and 25 guests