[Solved]How do I change direction of object by touch?

Get help using Construct 2

Post » Sun Jul 12, 2015 6:49 am

Hey everyone,

Just started using Construct 2 so need some help here. Basically I want my object to move in 3 directions by touching different part of the screen. When a user touch the right side, it will move left and vice versa. When the user touch the middle of the screen, it will move upwards.

I used the equation below but it didn't work as I intended. I've set global vector y to -500. Currently the object is only moving towards the left side. Does anyone know the proper way to do it?

Image
Last edited by mrneko on Wed Jul 15, 2015 10:39 am, edited 1 time in total.
B
23
S
10
G
2
Posts: 104
Reputation: 3,071

Post » Sun Jul 12, 2015 7:07 am

Hi,

I'm not quite sure if I understood it correctly, but I made a capx example.

https://www.dropbox.com/s/itcu6azwl3zy0gg/player_control_w_touch.capx?dl=0

Left Side: Move Left
Right Side: Move Right
Middle: Jump

Regards
Andreas
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418

Post » Sun Jul 12, 2015 12:30 pm

Hi Andreas,

Exactly what I am looking for!

Thanks a lot,
Clement
B
23
S
10
G
2
Posts: 104
Reputation: 3,071

Post » Sun Jul 12, 2015 12:32 pm

mrneko wrote:Hi Andreas,

Exactly what I am looking for!

Thanks a lot,
Clement


Great ;)
You're welcome!
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests