Touch Control Movement Help

Get help using Construct 2

Post » Thu Nov 14, 2013 11:15 pm

I need to make it so when you tap on the left side of the player you move left, and the right side you move right. I am making it top down, and for some reason Simulate Control isnt working properly.
B
9
S
1
Posts: 42
Reputation: 622

Post » Thu Nov 14, 2013 11:27 pm

create a global variable, let's call it MOVING

On tap left set MOVING to 1
On tap right set MOVING to 2

System compare variable
MOVING = 1 - simulate pressing left
MOVING = 2 - simulate pressing right

on touch is only true for 1 tick, you could also use is touching if you prefer.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 14, 2013 11:50 pm

Here is the capx so you can see what I did. You need a touch device, our you could just change it to mouse. When I click on the right side of the screen, the layout restarts. And I know its simulate control up and down, I was just testing. Change it back to left and right. Try to find out why left and right aren't working.
Link: http://www.mediafire.com/download/s52nhmuhodxn2n1/Tabors_Game.capx
B
9
S
1
Posts: 42
Reputation: 622

Post » Fri Nov 15, 2013 4:14 am

bumpadoodledoo
B
9
S
1
Posts: 42
Reputation: 622

Post » Fri Nov 15, 2013 8:14 am

Removed a lot

The touch object accepts mouse input if you don't change it, so there was no need to change anything. Can test it on windows in Chrome just fine with my mouse.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 27 guests