playMaker

Author Topic: Jumping Ways [Solved]  (Read 1777 times)

dougbello

  • Playmaker Newbie
  • *
  • Posts: 32
Jumping Ways [Solved]
« on: June 17, 2015, 05:43:13 PM »
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.
« Last Edit: June 18, 2015, 04:14:25 PM by dougbello »

dougbello

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Jumping Ways
« Reply #1 on: June 18, 2015, 12:23:52 PM »
ok, I found a solution and will give it for the future generations... a legacy.

I had to change force to set velocity... so instead of using force I just change to set velocity in Y...

Noe it works as I want.

Thanks for everybody who thought about helping. :)

Doug.
« Last Edit: June 18, 2015, 03:11:53 PM by dougbello »