Adding Bonus Points to Score Points in "Game Over" Actor

game ongame on Sun Valley, California Member, PRO Posts: 79

I have three "Score" Actors. One keeps "Game Score," the second is a "Bonus pts." Actor. Is there a way, after "Main" actor dies and "Game Over" box appears, to add the "Bonus pts." to the "Score pts." to get "High Score?"

Thanks, David

Comments

  • game ongame on Sun Valley, California Member, PRO Posts: 79

    Bump...

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

    Sure. I assume you already have a rule condition for game over (e.g. game.gameOver=true). In that rule, have a change attribute to change game.score to game.score+game.bonus.

    For a high score rule, do When game.score > game.highScore, change attribute game.highScore to game.score. You'll want that rule after the bonus rule.

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

  • game ongame on Sun Valley, California Member, PRO Posts: 79

    Thanks tatiang.

Sign In or Register to comment.