How to disable touch events on object when paused?

Get help using Construct 2

Post » Fri Sep 27, 2013 10:06 pm

I'm making bb game, i'm using browser plugin and when it fires suspend event, it pauses the game, but user can still destroy things but tapping on the objects, i want to block during pause screen, all i'm doing is placing a pause sprite when event is fired, so user can tap on the pause sprite and start the game again.....but i don't want user to hack my game but pausing the game and destroy objects? How to work out that?
B
4
S
1
Posts: 21
Reputation: 776

Post » Sat Sep 28, 2013 1:06 am

You could use a global variable as a condition i.e. On Touched(if variable=0) > Do touch. Then if you set variable to 1 when the game is paused, the touching will not work. Another way you can do it is to put all the major touch logic into a group and disable the group when the game is paused.
B
46
S
16
G
78
Posts: 2,166
Reputation: 46,349

Post » Sat Sep 28, 2013 6:27 am

You can put them in a group and just deactivate that group when you pause.
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,667


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, farsen and 7 guests