- Home /
Run Animation/Jump animation/Scripting Movement/Animations
My Game is 2D
Okay I'm going for one of those "Jump over a block" games. I'm a very new and young developer and I've kind of got into a spot for a while and I have no idea what to do. If you check, you'll find that I already made a question similar to this but this is slightly different. I was gave the idea to make a running animation and a jumping animation to make it run smoothly instead of adding force to the RigidBody. I have encountered a few problems.
Adding an animation to a script and having it just automatically play.
Making it be able to go from running animation - jumping animation - running animation smoothly.
When it plays the jumping animation and the running animation plays it teleports back to the beginning.
I've tried adding force to the object's RigidBody every frame but it makes it gain to much speed and adding force to the y axis for jumps makes jumps very "sketchy" and not user-friendly.
Ps. By Running Animation I mean the object just moves forward. By Jumping animation I mean the object goes over the other object If you have any ideas what I should do, pleas help! Thanks!