Thanks !
For the bar the tip is to set its position by the player position like (player.x, player.y-10), and to update its position with the player.
I had difficulties stabilizing the position of the bar with the animations because the sprite changes size. And with the deadline approaching, I didn’t have time to make my spaghetti code reliable, haha.