Reseting score & health

sl-imagessl-images Member Posts: 44
edited November -1 in Working with GS (Mac)
Hi

ive got a game were the actor hits some objects he scores points if he hits others he loses health when all the health is gone its game over ... this works fine

But

when i retry the scene the score is where it was befor he died, and the health is full but no longer works

for score i have

atribute - game.score+1

for health i have

atribute - game.health -1
(the intager starts on 3 and when it hits zero game over)

i changed it to when i reset, change atribute game.score=0 & game.health

PLEASE HELP
thanks

Comments

  • sl-imagessl-images Member Posts: 44
    Thanks tshirtbooth for such a quick reply !

    so would i do change atribute

    game.score TO game.score=0 ??

    is that how to write it 'game.score=0'

    thanks
Sign In or Register to comment.