How do I make touch controls motion controls?

Get help using Construct 2

Post » Sat Nov 05, 2011 5:34 pm

How do I make touch controls motion controls, mostly for android ios and web os. I already found how to put it on I just don't know how to use it. I would like when user touches one sprite it moves left and when user touches other sprite it moves right. Please Help! Ashley2011-11-05 18:34:46
B
2
G
1
Posts: 8
Reputation: 466

Post » Sat Nov 05, 2011 6:35 pm

Use an event something like:

+ Is touching BigLeftButton
-> Player: simulate control left

+ Is touching BigRightButton
-> Player: simulate control right

etc.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sun Jul 15, 2012 10:25 pm

greetings.
I wondered how they can do so by touching a sprite moves in the direction that the player has to either left or right, as if this were dragged. equal to mobile devices
B
16
S
3
G
3
Posts: 15
Reputation: 2,813

Post » Sat Mar 02, 2013 5:00 am

I have used this code working fine on my desktop system my created a bug on my android mobile device
I have Samsung tab-2 android v4.1.1
I have created a game in c2 and convert into apk file for my android devices

when I click to moving object using the slimier code

+ Is touching BigLeftButton
-> Player: simulate control left

BigLeftButton is my object

it hang my phone device

what is the issues

have c2 bug ?
B
12
S
2
G
3
Posts: 57
Reputation: 3,439

Post » Sun Jul 05, 2015 2:44 pm

hi guys
i have truble i wont me turret to aim and shot when i touch the screen like shooting on my finger
and it keep shooting by it self and i cant make the target is touch how i can fix it :?
plz tell me
B
2
Posts: 1
Reputation: 152


Return to How do I....?

Who is online

Users browsing this forum: Renfd, supreme676, Yahoo [Bot] and 32 guests