Hello Everybody,
I’m making a game where my main character has to jump from place to place…
I’m trying to figure out the best way of doing it jump… so basicly I have 2 possiblities…
1. "The one that is working fine”
when begin touch happens - I go to a state where it adds force - until I release the touch.
I clamp the float number.
Then it jumps with the force added during the time it was pressed.
2. “The one is not working”
I would like the character to jump as soon as touch begins. But to stay longer in the air if I keep touching.
So I did like this:
when begin touch - go to a state with and give a minimum force already -
then go to a state that adds force until the touch ends - or the wait time ends.
But this is doing 2 separated forces and causing a strange jump.
I’ll try to atach screen shots to help.
This is a common behavior for jumping characters so probably someone know how to do it right.
Yes?
Thanks and sorry for my english.
Doug.