toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
How to reset score after player loses
HeyFries
Member
Posts:
78
November 2010
edited November -1
in
Working with GS (Mac)
What's the best way to have the score reset to 0 in a game of multiple levels after player loses life? Thanks
Comments
RH
Member
Posts:
1,079
November 2010
when player loses life change attribute game.score to 0
gazjm
Member
Posts:
578
November 2010
When the player loses a life, have a rule which says
Change attribute score = 0
gazjm
Member
Posts:
578
November 2010
Damn, beaten by a matter of seconds!haha
HeyFries
Member
Posts:
78
November 2010
Thanks. It's there another option though, because in my game shows the score and also the highest score of the player. When I set the score to 0 it also sets the highest score to 0.
gazjm
Member
Posts:
578
November 2010
you must have a rule forcing the highest score to update to score all the time. you need to change it so as
when score > highscore
change highscore to score
then when you reset score to 0, because it isn't higher than the previous recorded high score, it won't change it.
HeyFries
Member
Posts:
78
November 2010
It worked. Thanks a lot!!
Sign In
or
Register
to comment.
Comments
Change attribute score = 0
when score > highscore
change highscore to score
then when you reset score to 0, because it isn't higher than the previous recorded high score, it won't change it.