i am new on this Unity please help me on my problem…
my question is how can i perform my 2D object move is different position smoothly?
what i mean is when i pressed letter “Q” it perform “Forward Jump” like this… illustrated on picture below
my question is not above playing animation… im using rigidbody2D
Well, you could make an animation for the curved path and play it when the player presses Q. And in animation states you can have it linked to any state so you can do that whenever. Its not a perfect answer, because I don’t quite know what you want exactly.
function Update () {
if (Input.GetKeyDown ("Q")){
animation.Play("CurvePath");
}
}