How do I Create a single touch stick

Get help using Construct 2

Post » Wed May 06, 2015 9:30 am

Hello,
I want to know how to create a single touch joystick that rotates my player to the position it is facing. How can I do this without having dual sticks.
Thanks in advanced.
B
8
S
3
G
2
Posts: 52
Reputation: 1,762

Post » Wed May 06, 2015 9:36 am

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 » Wed May 06, 2015 9:42 am

Yeh yours is good but I only want the stick to rotate the player not move
B
8
S
3
G
2
Posts: 52
Reputation: 1,762

Post » Wed May 06, 2015 9:48 am

It would consist of setting the angle of the player to thumbstick.a degrees
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 » Wed May 06, 2015 10:52 am

how do i encourparate your program with the rotation
B
8
S
3
G
2
Posts: 52
Reputation: 1,762

Post » Wed May 06, 2015 11:13 am

Like I said..

You'd want to set the angle of the sprite to thumbstickstick.a degrees

so:

on touch
thumbstickstick is selected
> sprite set angle - thumbstickstick.a
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 » Wed May 06, 2015 11:45 am

I know that but what I dont know is how to create the thumb stick in the first place
B
8
S
3
G
2
Posts: 52
Reputation: 1,762

Post » Wed May 06, 2015 11:49 am

That's why I created my example.
All you need is in my capx right?

Just copy or recreate the events and sprites and it 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


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 60 guests