Need help with platformer

Hello everyone,

I need help figuring out a few things about making a platformer game. I’ve searched through the threads and can’t seem to find what I’m looking for. Right now, I’m playing around with the platformer game starter in gdevelop. I could really use help with the following: (1)when the player collides with an enemy from the side then player dies and goes back to checkpoint(like in the Mario games. [b]Enemies can be killed by jumping on them only./b when player falls through hole in floor then player dies and goes back to checkpoint.(3) creating a lives system and gameover option. If anyone can help, I would really appreciate it.


(2) There are several options. I do it with an invisible object in the hole and check the collison with it.
You can also check the “Y position of player >= ground.Y () + 40”
I never did it but I think (1) works the same way. Check if the player position is higher than ~98% of the enemy position.

(3) Create a global variable “lifes” then you can easy add and remove life with. “Value of a global variable - 1” And hen if varibale lifes = 2, hide objekt heart3 and heart4. If lifes = 0 show game over text objekt and restart button.