How do I use touch controlls

Get help using Construct 2

Post » Sun May 10, 2015 11:42 am

Hi! Im developing a game where a ball runns througe a maze. If you touch the sides, you loose.

I need like..touch controls..so that the player can use his finger to move through the maze.
The controll should work anywhere on screen.

Do anyone have any tips for this?
B
3
Posts: 3
Reputation: 181

Post » Sun May 10, 2015 12:01 pm

Which behaviour are you planning on using for the movement of the ball?
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 » Sun May 10, 2015 12:09 pm

Im new at this, but 8 direction. When i put my finger on the device..i want to controll the ball in all directions
B
3
Posts: 3
Reputation: 181

Post » Sun May 10, 2015 12:14 pm

Well you could get the angle between the player and touch with:

angle(player.x,player.y,touch.x,touch.y)

after that it's just a matter of using the 8 direction simulate control action depending on the angle.
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 » Sun May 10, 2015 12:17 pm

Im so new to this..is there any tutorials explaing exactly this?
B
3
Posts: 3
Reputation: 181

Post » Sun May 10, 2015 12:30 pm

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: KTML5 and 25 guests