I am creating a 2D game, I wanted to implement jump for my player…like in a parabolic angle…
Currently I am just moving my player to the target position with MoveTowards method. I need to implement parabolic angle to it.
I’ve attached a screenshot of three objects with my player, now scenario is …when I click on a gameobject (other than the one on which player is currently) , the player should move above it (like it is at current state) …with some parabolic angle…with some smooth movements and with some sprite animations,
Please Suggest me how can I make this behaviour. Also I am using NGUI, if this helps…:)[31581-screen+shot+2014-08-27+at+12.05.14+am.png|31581]
Here is a c# version of the @robertbu code snippet with removed the redunant first loop iteration, fixed errors, JumpProgress property and the ability to jump in another direction stopping the previous jump.