Invertex help, jump problem

hi man,

now i have a new problem oO
when i jump and i keep bouton left or right press my object still in the sky oO

look this video(my problem):

and this is my projet:
http://speedy.sh/gKcZd/myprojet.rar

i want that he move as Sonic but with a double jump

thanks first

I have this problem when my Rigidbody2D has Linear Drag with higher values. Set it to 0 and try again. It work as a parachute.

thanks but as you can see in my project(you have my projet link), i already set it to 0

Oops, the code I gave you before had a little flaw then since I hadn’t been thinking about jump. It’s setting your Y velocity to 0 when at max speed, which is keeping you in the air haha

change this line:

rigidbody2D.velocity = new Vector2(maxSpeed * x,rigidbody2D.velocity.y);

This way, it will essentially leave your Y velocity alone.

Man I love you :smile: i know that you are the only one who can save me, thanks a lot mouaaah