How do I make touch controls for breakout game???

Get help using Construct 2

Post » Fri Jul 18, 2014 7:35 pm

I've tried a few things and i'm stuck i am posting this again if anyone got solution,i am making a breakout game,and i need my paddle to move when i touch + move my finger around,so it's something like drag and drop i guess sort of a thing,but,i don't wan't the paddle to teleport wherever i put my finger,so,i must 1.Touch the paddle itself,and 2.Then drag it or move it around.How do i do that?
B
5
Posts: 24
Reputation: 280

Post » Fri Jul 18, 2014 7:43 pm

Drag and drop behaviour limited to horizontal axis should work..
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 » Fri Jul 18, 2014 8:07 pm

here is what i use for this
Image

var_int_player is the "speed" of the paddle

y: 109 and 319 are my boundaries, the paddle shouldnt move any further if it reaches this position


for your game you have to change y to x and the value for the boundaries.
B
38
S
11
G
5
Posts: 485
Reputation: 5,340


Return to How do I....?

Who is online

Users browsing this forum: Bootfit and 9 guests