Touch Joystick?

Get help using Construct 2

Post » Thu Nov 14, 2013 1:41 am

Hello everyone, I was wandering if I can make a touch joystick on C2 because I need it for a project urgently. I read a tutorial once but it wasn't as detailed as I require. I need the touch joystick to control the player. Thanks in advance!
B
16
S
6
G
2
Posts: 42
Reputation: 2,554

Post » Thu Nov 14, 2013 3:35 am

Hide a sprite below your background image.
Use that as a touch-able element.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Thu Nov 14, 2013 12:30 pm

@lennaert, what do you mean?
B
16
S
6
G
2
Posts: 42
Reputation: 2,554

Post » Thu Nov 14, 2013 12:44 pm

He means that you place sprites behind your image for the joystick that you can have "player touch sprite X" events for, which you then use to control your player.

- Player is touching "joyUp"
+ Simulate control "up"

Something like that. If you need more granularity, and actually want it to be analog (how weird isn't the concept of a digital analog joystick, btw) you'll have to do something else, like determining if the player is touching within the area and using lerp to get the values.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Thu Nov 14, 2013 1:06 pm

@Inkbot, thanks for your reply, but I need a tut on how to create an analog joystick. Thanks!
B
16
S
6
G
2
Posts: 42
Reputation: 2,554


Return to How do I....?

Who is online

Users browsing this forum: blue visionary and 4 guests