How do I do top-down jumping over low walls?

Get help using Construct 2

Post » Mon Oct 27, 2014 6:04 pm

I'd like to disable players collision with only certain objects while flagged as jumping but disabling the players collisions lets player jump over anything and disabling collisions from walls does work for player but means I can't have anything else that could collide with it.

So how do I make it so that the walls ignore player but not everything else?
B
17
S
6
G
1
Posts: 41
Reputation: 1,725

Post » Mon Oct 27, 2014 6:06 pm

If the player is jumping "over" the wall why would you need to disable anything? Sounds like you need to tweak your collision bounds in both the player and the walls, and maybe your jump power.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
69
S
18
G
8
Posts: 639
Reputation: 9,549

Post » Mon Oct 27, 2014 7:20 pm

chrisinfinger wrote:If the player is jumping "over" the wall why would you need to disable anything? Sounds like you need to tweak your collision bounds in both the player and the walls, and maybe your jump power.


What do you mean by jumping power? It's top-down and doing z coordinates doesn't seem worth it, so jumping is only changing a variable and an animation.
B
17
S
6
G
1
Posts: 41
Reputation: 1,725

Post » Mon Oct 27, 2014 7:53 pm

It's top-down


Sorry I misread title

You could put an instance variable in player set to jump=0 and have it set to 1 when jumping. In your collision event with wall have it condition out jump=0.
You might find it easier to turn off wall collision and use is-overlapping instead then if its overlapping wall and jump=1 it ignores overlap and passes through otherwise have it stop movement and maybe move back a pixel or two. The key is you need to set the jumped items collision/overlap and not the players.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
69
S
18
G
8
Posts: 639
Reputation: 9,549

Post » Mon Oct 27, 2014 8:09 pm

@MAUKKA
See if this post helps you

viewtopic.php?f=147&t=113675
B
13
S
5
G
1
Posts: 119
Reputation: 2,292


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests