score countdown after damage
Hi guys
I am asking if anyone knows how to show a score being depleted by an amount which has been determined by an attribute.
Scenario
I have actors in my scene that come on screen. Some of these hold an 'Infection'. If the player touches one of these, then I want my score attribute to be depleted by a random number (Say between 1000 - 50,000).
I know how to just take this off the score normally but I would like to see a sort of damage effect to my onscreen score. I would like the score text to turn from white to red and countdown really fast the random damage number (Determined by Gamesalad selecting a number between 1000 and 50,000).
Is it possible to show the score counting down backwards or will I just have to take off the damage score in one go
Anyone got any clues on this?
Many thanks in advance
Zombiebrains
I am asking if anyone knows how to show a score being depleted by an amount which has been determined by an attribute.
Scenario
I have actors in my scene that come on screen. Some of these hold an 'Infection'. If the player touches one of these, then I want my score attribute to be depleted by a random number (Say between 1000 - 50,000).
I know how to just take this off the score normally but I would like to see a sort of damage effect to my onscreen score. I would like the score text to turn from white to red and countdown really fast the random damage number (Determined by Gamesalad selecting a number between 1000 and 50,000).
Is it possible to show the score counting down backwards or will I just have to take off the damage score in one go
Anyone got any clues on this?
Many thanks in advance
Zombiebrains
It takes a Zombie to know a Zombie!!!
Comments
http://www.mediafire.com/?i7vwz0g1fyd5vq5
That's exactly the sort of thing I was looking for.
It takes a Zombie to know a Zombie!!!
My maths is wrong, but the basic idea of using 'interpolate' should work fine.