Wall Jump?

Post your own tutorials, guides and demos.

Post » Fri Jan 02, 2009 6:47 pm

I kinda just started fiddling around with Construct, so I don't really know what I'm doing yet. My attempts to make a wall jump mechanism kinda resulted in a rather buggy system... it works, but it also works when it shouldn't.

In the cap below, if you run straight forward into the wall, hold right, and hit Z, you do a wall jump. This was not the intended functionality, but I can't for the life of me figure out why it wouldn't be working. I have it set up so that the right detector must be overlapping the wall and the bottom detector cannot be overlapping the ground, but even when the bottom detector is overlapping the ground it still likes to wall jump.

Any ideas? Thanks.
B
1
G
4
Posts: 1
Reputation: 1,027

Post » Fri Jan 02, 2009 7:18 pm

Fixed.

Upon first inspection I thought it might have to do with some event ordering stuff, but I couldn't see exactly why... except my gut tells me that the On Key event should be at the top. So I changed it. It's using the exact same conditions, just in a different order:



I'm sure I could muddle through the logistics of why it was doing what it was doing but, meh... it works. Maybe someone smarter than me can explain why :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Mar 03, 2009 8:38 pm

any way to make the player slide down the wall slowly like in Mega Man X?

btw this is my first post here so hi :mrgreen:
B
1
G
3
Posts: 3
Reputation: 831

Post » Wed Mar 04, 2009 9:42 am

Please make the jump key something else, on many eastern keyboards the Z key is between T and U. Not quite reachable, is it? :?
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests