Restart current level after death - Simple Platformer

Seabool

New member
Hi, guys.
At first I want to say sorry for any mistakes in my english, because this is not my main language.
I'm looking for help. I'm making my first game based on SIMPLE PLATFORMER Tutorial and I want to make after death action. I mean, when you die on level three, you are also respawn on level three. I tried to set User1 as End Animation i playerDeath object, and it work just in half, because it's going back to first level. If you need any screenshots or something, just tell me.
Once again, I'm sorry and thank you in advance for your help :)
 

dale_coop

Moderator
Staff member
You need to add Checkpoint tiles at the beginning of each level.
Here's a tutorial to add checkpoint tiles, if you don't have them in your project:
https://nesmakers.com/viewtopic.php?f=23&t=1953
 

Seabool

New member
Thank you for your reply! Your advice was good and checkpoint system works very well, but now, I have problem with all monsters, because when player dies after using checkpoint, player restarts at checkpoint, but there are no monsters. Is there any way to fix that?
 

dale_coop

Moderator
Staff member
There are no monsters because your screen is triggered.

If you don’t want that your screen is triggered when the checkpoint is activated, comment the line « TriggerScreen » in the Checkpoint script (the script assigned to the corresponding Tile Col ?? element in your «  project settings > script settings »)
 
Top Bottom