Hi,
I'm making a game where I want the enemy characters to do a short animation when the player gets a new high score before resetting to their default animations. It almost works except the enemies play the "high score" animation in an endless loop on getting a high score. I'm using "on animation finished > set animation" which has worked before. What am I doing wrong?
Is set high score animation linked to an event that runs constantly? That would overrule the logic for high score animation finished, set back to default. If you can post a screenshot of the events that would help with this.
Develop games in your browser. Powerful, performant & highly capable.
Hi plinkie,
I expect you're right but having gone through the events can't work out what's triggering the loop. I've attached a screenshot.
You haven't updated the High Score variable, only the local storage item. So Score is always > High Score and true.
Thanks plinkie,
Unfortunately I don't know how to update the hi-score variable (am still very new to this).
On the actions on the right you need to set global variable 'High Score' to 'Score'.
Many thanks plinkie, it's working now. :)