Player and Enemy collisions[PLATFORMER]

Get help using Construct 2

Post » Sun Aug 31, 2014 11:48 am

Hello,
I have a player and an enemy object in my game.
help.png

Player is blue and enemy is orangish. So when I collide with enemy from side without touching the floor(left side of the image) then the enemy is killed but i want player object to take hit/damage without killing the enemy. Player object only gets hit when player is touching the floor and colliding with the enemy(right side of the image). I want my player object to get hit in both of the examples. And I should be able to kill enemy when i hit it from the top like Mario games.
Here is the code that i am using.
Untitled-3.png

PLEASE ASK IF YOU WANT TO KNOW ANYTHING ABOUT THE GAME. E.G. PLAYER BEHAVIOURS.
THANKS.
You do not have the required permissions to view the files attached to this post.
B
14
S
2
Posts: 24
Reputation: 843

Post » Sun Aug 31, 2014 6:11 pm

player on collision with enemy
---(sub event) player is falling
---(sub event) player y < enemy y ----- enemy destroy

else ---- player get hit
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 9 guests