Need help with animations

Hey all, i need help with an idle animation, for example i am doing a version of Mario for a school project and when i pick up the fire flower i need the sprite to basically change colour, i’ve been trying to do this with an animation but just can’t figure it out. link to game (sorry if messy/ inefficient it’s my first time)

here is an example so when you hit the mushroom you get a new animation

Hey I know it’s a pain but you need to redo the sprites and use a toggle switch to where when you get one, the character plays those animations instead of the original.