It's causing issues in detecting when the shield is down. In its current state shield hits 0 and enemies rush in towards the player but the healthbar does not say so (and doesn't play the sound).
I put console.log into the code for when the player's shield updates and when the healthbar updates, apparently healthbar only updates every third loop
It's causing issues in detecting when the shield is down. In its current state shield hits 0 and enemies rush in towards the player but the healthbar does not say so (and doesn't play the sound).
I put console.log into the code for when the player's shield updates and when the healthbar updates, apparently healthbar only updates every third loop