How do I Jump and Move my player with single touch

Get help using Construct 2

Post » Thu Jun 29, 2017 8:51 am

I want to develop a game like "Jumping Joe". I want my player to jump and move left or right to the bars with single touch same as "Jumping Joe". How do I Jump and Move my player left or right with one touch ??
Thanks in advance ................!!
B
3
Posts: 4
Reputation: 183

Post » Fri Jun 30, 2017 8:16 am

add platformer behavior
event
ON TOUCH
sub conditions
if touch.x is > than player.x
actions
simulate "right"
simulate "jump"
sub conditions
if touch.x is < than player.x
actions
simulate "left"
simulate "jump"


hope this helps
B
6
S
1
Posts: 1
Reputation: 389

Post » Fri Jun 30, 2017 11:38 am

Thank you very much for your help :) .... But I have tried this buddy ... It only simulates "Jump" ... but it doesn't simulate "left" or "right" ... when I run the game the player only jumps on any touch but doesn't move at all ...!!
B
3
Posts: 4
Reputation: 183

Post » Fri Jun 30, 2017 11:46 am

Probably because ON TOUCH only fires once. Try IS TOUCHING ;)
B
16
S
3
Posts: 67
Reputation: 1,044

Post » Fri Jun 30, 2017 1:16 pm

Thanks buddy :D .... it works on "IS TOUCHING" condition. But i want to make this same as "Jumping Joe". That means my player have to jump and move left or right some fixed distance in one touch.
B
3
Posts: 4
Reputation: 183

Post » Fri Jun 30, 2017 9:49 pm

Thank you very much guys ^_^ ... I have solved the problem :D :D :D
B
3
Posts: 4
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish and 15 guests