I am making a game where you start as a baby, and you grow to be an old man. This repeats in a cycle as you complete the game. In certain levels, you may need to use the abilities of the character to pass. For example, you could use the baby to get in small spaces, or use the adult to move blocks. I am also coding this entire game in JavaScript canvas. I am not using any engines like Godot or Unity. Also, I am struggling with animating my characters, and I would appreciate if anyone could help me.