Implemented dashing! The dash is handled as a coroutine, meaning it runs over multiple frames without blocking the rest of the game. When the player presses dash, gravity is temporarily disabled and the player is launched horizontally at a fixed speed in the direction they’re facing. Normal movement is locked out for the duration. After a set time the gravity is restored, and the player has to wait through a cooldown before they can dash again.
The dash animation has two parts, one of the player turning into a literal star and the other is the star looping throughout the dash. Took me a long time to implement cuz things kept breaking lol.
Also may have spent 2 hours trying to fix an animation error that had nothing to do with the animator but rather the thing that was checking for the ground.. wasnt actually near the ground. Which led to the player never being grounded… and the animations never starting…. oops.