How to display a timer? how to let your game add subtract points the display the final result ???
luayidriss
Member Posts: 17
How to display a timer? how to let your game add subtract points the display the final result ???
Comments
then using the display text behavior to display the time.
:-j :-j :-j :-j :-j :-j :-j :-j :-j :-j :-j
Change.Attribute : game.Score = game.Score - (Whatever you want)
or
Change.Attribute : game.Score = game.Score + (Whatever you want)
ex. u press a certain a button u get ten points
you press another button u lose 20 pts
then at the end of the game you get your score
Rule: If actor pressed
Change.Attribute: game.score = game.score - 20
And on your plus 20 actor/button add
Rule: if actor pressed
Change Attribute: game.score = game.score + 20
If you find that the score continuously increases or decreases when you press and hold then try it with "if actor released".
Then use a DisplayText behavior to display game.elapsedTime.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
But seriously, this is sort of a pay it forward kind of community. Just help the next person who needs help and we'll call it even.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User