how to add checkpoints to the game

hello guys. is there a video which shows how to put many checkpointpoints in scene so when my actor dies it apears in the last checkpoint he overlaps with? or if somebody has the time to give a very simple explanation for someon slow.. :D

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited December 2013
    Give each checkpoint actor an integer attribute self.myID and set each instance's value of that attribute to an increasing number for each checkpoint location (e.g. 1, 2, 3, 4, etc.). In your checkpoint actor, add a rule that says when actor collides with [player actor], change attribute game.checkpointID [also an integer] to self.checkpointID. In your player actor, add a rule that says When actor overlaps or collides with [checkpoint actor], timer after 0.1 seconds (run to completion checked), save attribute game.checkpointID with key [checkpointID].

    When you re-load the game, do a load attribute key [checkpointID] game.checkpointID and have a rule that sets certain attributes and/or scenes based on the value of game.checkpointID.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • InovaTechInovaTech Member Posts: 161
    i will try. thanks alot
Sign In or Register to comment.