Does anyone have a good jumping script for 2d games in unity? The code I have works but still is far from jumping, it looks like it is flying.
using UnityEng
Usually for jumping people use Rigidbody2D.AddForce with Forcemode.Impulse. It may seem like your object is pushed once in Y axis and it will fall down automatically due to gravity.
Rigidbody2D.AddForce
Forcemode.Impulse
Example:
rigidbody2D.AddForce(new Vector2(0, 10), ForceMode2D.Impulse);