How do I invert touch

Get help using Construct 2

Post » Thu Feb 05, 2015 2:30 am

I have player movement on touch but I wish when I tap over enemies player will stop moving. I tried the logic in attached screenshot, but it doesn't work, does anyone have solution for this? Many thanks.

Image
B
4
Posts: 13
Reputation: 224

Post » Thu Feb 05, 2015 5:32 am

I am not 100% sure what you mean and there is no screen shot attached, but I am thinking that you need to use a global variable, and when the touch ends set the global variable to say 1 and with the enemy movements, check this variable and if set to 1 don't do anything.

On touch set it the variable to 0, then the enemy should move.

Not sure what you meant by tap over enemies?
B
6
S
1
Posts: 37
Reputation: 415

Post » Thu Feb 05, 2015 2:26 pm

do mean like this inactive player or inactive enmey
You do not have the required permissions to view the files attached to this post.
B
218
S
31
G
14
Posts: 1,890
Reputation: 37,701


Return to How do I....?

Who is online

Users browsing this forum: SEGamestudio and 0 guests