How do I do touch control like agar.io

Get help using Construct 2

Post » Sat Feb 18, 2017 6:50 am

Hi, I have a touch control for mobile agar.io style that is working once you start dragging the touchpad but the only thing I didn't manage to implement is that every time that I touch the screen starts moving to the right by default , and I would like to set it up like agar.io wich is set up in the way that for every touch on the screen starts moving to the direction where you last touched without the need of dragging the touchpad, then after that you can start dragging it to move around.

I will leave a capx and video so you can see what I'm trying to do, thanks in advance

Capx: https://www.dropbox.com/s/pynlvhc8x19ymek/helpTest.capx?dl=0



video: https://www.dropbox.com/s/vccn4x1fnpgw2g7/20170218_060238.mp4?dl=0
B
41
S
25
G
87
Posts: 310
Reputation: 48,098

Post » Sat Feb 18, 2017 3:27 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat Feb 18, 2017 7:29 pm

99Instances2Go wrote:Modified:



@99Instances2Go Wow Thanks man working great, I really appreciated, just one thing when the player is near the edges of the layout he loses accuracy on the angle to the touchpad this happens only on the Borders of the layout, other than that is working great, do you know what maybe the reason?

I have done a video to show you: https://www.dropbox.com/s/elbau2s4tdmloqg/VIDEO2.mp4?dl=0

capx: https://www.dropbox.com/s/kl0v1yu80atrtp2/HELP2.capx?dl=0
B
41
S
25
G
87
Posts: 310
Reputation: 48,098

Post » Sun Feb 19, 2017 10:30 am

That is due the bounded scrolling.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sun Feb 19, 2017 10:35 pm

99Instances2Go wrote:That is due the bounded scrolling.



@99Instances2Go I see
is working great even with that minor think, I don't think anyone will notice it so I'm happy to leave it like that

Thanks for your help, take care bro :D
B
41
S
25
G
87
Posts: 310
Reputation: 48,098


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 29 guests