Help reseting attributes

So Ive created a small game where there are aliens coming down on you and when they pass a line you lose. The goal is to distroy all all of them before they hit the line. There are 15 aliens and they are saved in the attribute aliensleftfirst .The problem is if i only distort 12 aliens before they hit the line it switches to a retry scene and then takes me back to the game. On the scene
there are 15 aliens but the attribute is still 3 (15-12) so i only need to distroy 3 aliens to go to the next scene. How do i reset the aleinsleftfirst attribute back to 15.

Comments

  • aitor010aitor010 Member Posts: 282
    RULE: when actor:alien be in y/x = 200 (the line where destroy): change attribute aleinsleftfirst = 15
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I assume you have a button in your retry scene that takes you back to the gameplay screen. In that actor, right before you switch scenes, add a Change Attribute game.aliensleftfirst to 15.

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

Sign In or Register to comment.