How do I simulate a jump and move to Left/Right with 1 butto

Get help using Construct 2

Post » Thu May 11, 2017 5:23 pm

How do I simulate a jump and move to Left/Right with 1 button?

I'm not sure what I am doing wrong but here is what I am trying to do

Player press on screen -> The character Jumps to the right and holds on to the wall on the right -> Player press on the screen again and the character jumps to the left wall instead


For some reason I just can't get this to work at all, Could anyone explain what I am doing wrong?
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Thu May 11, 2017 7:53 pm

Hi @Triforce

Here's a demo:

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

I've bunged a bunch of variables on the character and run a check to see which direction its facing. You can fiddle around with the jump velocities to find something to your liking.

Hope it helps :)
B
20
S
9
G
4
Posts: 473
Reputation: 4,260


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 51 guests