Platform Game Jumping Problem

Get help using Construct 2

Post » Sat Dec 27, 2014 3:56 pm

Sometimes the player doesn't want to jump while running.

www,dropbox.com/s/1mmsqn7k0m2db4u/platform.capx?dl=0

I don't know what's wrong.
Could anyone give a hint?
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sat Dec 27, 2014 4:10 pm

I could but where your file?
B
256
S
39
G
15
Posts: 1,982
Reputation: 41,032

Post » Sat Dec 27, 2014 4:34 pm

The file can be downloaded from:
www,dropbox.com/s/1mmsqn7k0m2db4u/platform.capx?dl=0

Please change the coma(,) after www.
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sat Dec 27, 2014 4:39 pm

Do you mean the jump animation? If so, you just need to add a condition to your running while pushing left or right triggers that says if jumping animation isn't playing. You'll also need to add some kind of event that says on jump landed switch back to the run animations.

If you mean it actually didn't jump, I couldn't replicate that.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,991

Post » Sat Dec 27, 2014 5:07 pm

It's not about the animation. It's actually the jump.

If I press up. Usually the player jumps. But there are moments while moving left or right, he doesn't want to jump, until I press up a couple of time.

This happens usually after he is landed and you want straight jumping again. I can see the jumping animation is on going. But the body stays on the ground.
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sat Dec 27, 2014 5:30 pm

Sorry, I can't replicate that and tried in several browsers.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,991

Post » Sat Dec 27, 2014 6:10 pm

I am sorry, I download and check the file again, it's not the latest file.

But anyway the problem is solved now. I think the problem was I apply the platform behavior to the player and to a box I use for overlapping the player.

I read somewhere in a tutorial that I should use a box as a mean to prevent some parts of the sprite to get stuck into a wall or something.

So, I'm closing the thread.

Thank you all for your time and efforts.
B
10
S
5
Posts: 220
Reputation: 1,464



Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests