Forum rules - please read before posting.

Respawn at a Checkpoint When Player Dies

edited January 2022 in Technical Q&A

Hi Chris,

I am facing a problem for respawn in my game when the player dies.

What I've done recently :

  • I do my demo game only in one scene.
  • I made a blade/saw in a room with trigger component attached.
  • When the player get hit by the blade/saw, trigger called and it will call Engine : End Game -> Reset Scene (not as I intended).

What I want to achieve :

  • When player dies getting triggered by the blade, I want the player to respawn at the entrance of the room. I thought using Marker would be great but still can't figure that out.

Do I need to update the PlayerStart position the marker position or ?

Thanks Chris..

Comments

  • edited January 2022

    You'll want to create an Autosave at the point that the gameplay begins, and then load that autosave when the player dies.

    To autosave, you can either use the Save: Save or load Action, or just check Autosave after? in the scene's OnStart Cutscene's Inspector.

    Then, you can replace the Engine: End game Action with another Save: Save or load Action - this time loading the autosave file.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.