Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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?
Develop games in your browser. Powerful, performant & highly capable.
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.
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.
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. :)