touch control

Get help using Construct 2

Post » Sun Dec 22, 2013 10:45 am

i'm making a game for mobile devices, including touch control. i would know how can i make a touch stick control, to let my player move? and i have another question: when i set the angle toward position of my player to touch.x, touch.y,my player look at the top left always when i stop the touch input, how can i solve this problem?
thanks and sorry for my english.
B
4
Posts: 17
Reputation: 259

Post » Sun Dec 22, 2013 2:39 pm

Check out the "How do I FAQ" for the Thumbstick example (it's a sticky in the how do I forum).

For the second question, you should add a condition "Touch:Is in touch" to your event otherwise, once the touch is over, the value of touch.x;touch.y is equal to 0 which ends up being the top-left corner of the screen.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,328
Reputation: 71,298

Post » Mon Dec 23, 2013 5:09 pm

ok thanks now i'm gonna trying :)
B
4
Posts: 17
Reputation: 259

Post » Mon Dec 23, 2013 7:08 pm

oh no! it doesn't work on my project!
B
4
Posts: 17
Reputation: 259


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests