Reseting score & health
sl-images
Member Posts: 44
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
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
so would i do change atribute
game.score TO game.score=0 ??
is that how to write it 'game.score=0'
thanks