my game is a 2d platformer very basic but it has animations and it needs to stop when i jump it can stop when i stop walking but it wont stop when i jump i seem to be repeating myself oops but i need help
Define a bool variable “isGrounded” (use any name you like), and use it to detect whether the player is on the platform (ground) or is in the air. Make it true when the user is on platform (ground), false otherwise.
Use this bool’s value to determine whether you should be playing your animation or stopping it.
oh i never checked my unity answers and then i already did that today using what i knew in my brain woops but thanks anyway it will help other people