How to block left/right input while jumping

Get help using Construct 2

Post » Wed Sep 12, 2012 8:23 am

...without stopping the player in mid air.

Hello everyone, thought I might as well make my first Construct2 forum post a question :)

I am trying to emulate a "no input" jump, where it isn't possible to move around, once the player has left the ground. I tried to ignore input when using the platform state "in jump", but that just makes the player stop in mid air.

Posting this from work, so I won't be able to try out anything new before I get home.
B
17
S
4
G
5
Posts: 36
Reputation: 5,077

Post » Wed Sep 12, 2012 8:54 am

Disable jump controls On Jump and enable them On Landing?
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Wed Sep 12, 2012 11:28 am

Sounds like what I did.

The problem I have is when running and jumping, as soon as player leaves the ground he looses momentum and stops in mid air.

But I will look into it when I get home, thanks for replying.

PS: Tried your unicorn game, very funny :)
B
17
S
4
G
5
Posts: 36
Reputation: 5,077

Post » Wed Sep 12, 2012 6:45 pm

To stop the loss of momentum set the deceleration to 0 when you jump and back to what it was before when you land.
B
79
S
24
G
54
Posts: 4,754
Reputation: 40,771

Post » Wed Sep 12, 2012 10:05 pm

Ah, makes sense. Thank you :)
B
17
S
4
G
5
Posts: 36
Reputation: 5,077


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests