Im trying to make my character jump to a given position, but its a lot easier said than done. I tried using tweens to do this but the tweens arent giving me the appearance of gravity i wanted. Is there another way that can make an object calculate an arc to move to a position?
also im not just asking how do i make a character jump, the arc jump would be an uncontrollable automatic mechanic in my game where when a player is hanging onto a grind rail they’ll be able to jump onto nearby ground but its automated so thats why the jumping arc is needed.
What kind of tweens did you try? Also I believe there’s a gravity extension. You might want to experiment with that, if it’s still available. Sorry I can’t check at the moment.
If it’s tweens, there are some ideas that come to mind.
When jump is initiated, apply force to move horizontally.
Then have a variable for use in the vertical move. Tween that variable to decrease over time. The tween should not be linear. Maybe ease out sine.
Set a condition to detect when tween is finished, then remove it.
Tween the variable again but this time the direction is to move down. And it is tweened to increase over time and probably use ease in sine.
If you have already tried this way and didn’t like the results, then please ignore this reply.
Im pretty sure i solved it, i just made it so that the player has forces towards the x position of the point and the y position with a tweening variable added to it that comes from the distance between the player and the point (it so like if the distance is 150 it’d tween from 150 to 0 in (length variable) seconds. When it reaches the point box it just tweens to the point to lock it in, also the box scales up depending on the speed so the player isn’t likely to skip over it.

