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
Posts: 21
Reputation: 626

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
45
S
15
G
73
Posts: 2,006
Reputation: 43,394

Post » Sat Sep 28, 2013 6:27 am

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


Return to How do I....?

Who is online

Users browsing this forum: newday198913, rotacak and 4 guests