Adding Bonus Points to Score Points in "Game Over" Actor
game 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
Bump...
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
Thanks tatiang.