High Score Announcement
Zombiebrains
www.zombiebrains.co.ukMember, PRO Posts: 296
Hi everyone
I am creating an old school shoot em up and have a question regarding a sound effect.
I have set up two attributes, score and hi-score. These work fine in the game and i can save to a key and retrieve them...thats all good.
What i want is some sort of sound fx announcement to go off when in a new game when the new score beats the existing high score for the first time.
Scenario.
Game 1 the player score 150 points.
Next game the player starts the game - 150 points is showing on the hi-score actor and 0 on the score.
Now I would like my sound SFX (Called "New Hi-Score") to play when the hi-score is beaten but only want the sound effect to go off once per game..otherwise it would go off every time the hi-score is beaten!
Does anyone know a good way of doing this...thank guys
I am creating an old school shoot em up and have a question regarding a sound effect.
I have set up two attributes, score and hi-score. These work fine in the game and i can save to a key and retrieve them...thats all good.
What i want is some sort of sound fx announcement to go off when in a new game when the new score beats the existing high score for the first time.
Scenario.
Game 1 the player score 150 points.
Next game the player starts the game - 150 points is showing on the hi-score actor and 0 on the score.
Now I would like my sound SFX (Called "New Hi-Score") to play when the hi-score is beaten but only want the sound effect to go off once per game..otherwise it would go off every time the hi-score is beaten!
Does anyone know a good way of doing this...thank guys
It takes a Zombie to know a Zombie!!!
Comments
I created a new attribute called 'Hi-Score Beaten'. Set a rule in the hi-score actor to say - if the score is greater than the hi-score, then set H-Score Beaten' attribute to true.
When true - play sound SFX 'New High Score'
Then when new game is started/new scene - reset Hi-Score Beaten' attribute to false...
Easy when I thought about it...:)
It takes a Zombie to know a Zombie!!!