Platform Collision Issues

Get help using Construct 2

Post » Sat Jan 18, 2014 11:32 am

Hey everyone!

I am having an issue with my main character. I am trying to make the Player flash when it runs into an enemy, which it does. But for some reason I can't stop it from flashing if the Player is jumping on top of the enemy.

Any help?!


Thank You,
Stephen
B
56
S
15
G
13
Posts: 826
Reputation: 17,705

Post » Sat Jan 18, 2014 1:24 pm

can you explain a bit better what do you want to echieve??

you want the player to flash when it hit an enemie but not when you crush it from above?? maybe you can try adding

if Player Y its > enSnail.Y + enSnail.height then inver it...

maybe this could work?? care to try?? :) and report results...
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Sat Jan 18, 2014 6:06 pm

When you jump on top of an enemy your player is falling onto the enemy.
Either remove the <platform is (not) falling> condition or copy/paste that block and invert the <platform is (not) falling> condition on one.
B
10
S
3
Posts: 8
Reputation: 716

Post » Sat Jan 18, 2014 9:43 pm

But, I want the Player to flash when he is not falling.

For example: Walking into the enemy should cause the Player to flash.
Falling on top of the enemy should not cause the Player to flash.

Both are collisions but handled differently. My code should work but its not for some reason.
B
56
S
15
G
13
Posts: 826
Reputation: 17,705

Post » Sat Jan 18, 2014 11:17 pm

Maybe this?

On collision with snail
PlayerVector.y is equal or less than 0 > Flash.
B
10
S
4
Posts: 133
Reputation: 1,543


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 10 guests