Player movement - Sprint

Get help using Construct 2

Post » Wed Oct 28, 2015 7:29 pm

Hi. I am making a game where the player, among other things, can sprint. So, the player can sprint every 3 seconds when the A or D + SHIFT is pressed, for a period of 1.5 seconds. The problem I encounter is that when the player is jumping (is in the air) and the period of 1.5 sec has passed, the player reduces his speed while is in the air and that's not realistic at all.
I want the player to not change his max speed while is in the air only after he touches the ground. How can I do that ?

I added a ss with my event sheet

Image
B
40
S
10
G
9
Posts: 213
Reputation: 7,057

Post » Wed Oct 28, 2015 8:13 pm

@anty21ro

There is an option on platform for 'Is On Floor'. This should only trigger when sprite is touching the ground
B
28
S
6
G
2
Posts: 86
Reputation: 3,267

Post » Wed Oct 28, 2015 9:30 pm

Gweely wrote:@anty21ro

There is an option on platform for 'Is On Floor'. This should only trigger when sprite is touching the ground



I have tried different ways of doing it but did not work, how should I implement it ?
B
40
S
10
G
9
Posts: 213
Reputation: 7,057


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests