Keeping enemies dead when re-entering a room?

AlanoAlano Member, PRO Posts: 70

Hey all,

So I have a top down shooter with multiple room and doors on each wall to enter and exit from. The rooms have enemies in them. How can I set it up so that when I re-enter a previous room the enemies are still dead and not reset?

Thanks in advance!
Alan

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You'll need to store each enemy's status (dead or alive) in a table and then have each enemy actor check that status and destroy the actor if the status is "dead."

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

  • AlanoAlano Member, PRO Posts: 70

    Thanks tatiang. New to GS so I'll have to read up on how to use tables.

Sign In or Register to comment.