playMaker

Author Topic: Animate Float  (Read 4128 times)

pandigital

  • Playmaker Newbie
  • *
  • Posts: 23
Animate Float
« on: September 27, 2011, 10:49:36 AM »
Im am trying to make a basic jump for a character.
At the moment I am trying to use Animate Float and Translate
You can see that the Animation curve goes up and down, and indeed so does the Y in Debug,
but the gameObject only translates upward on the Y axis
If anyone has advice  on a)what I am doing wrong and b) the best way to animate a jump TIA
:)
Im guessing that the curve is only adding the values, rather than adding and subtracting, but did try using two States and Animate Float V2, with one on add and the other on subtract, and it still didnt work
« Last Edit: September 27, 2011, 12:07:18 PM by pandigital »

smiffy

  • Junior Playmaker
  • **
  • Posts: 54
Re: Animate Float
« Reply #1 on: October 01, 2011, 08:58:04 AM »
The best jump method I've found so far is to use the iTween Move By action.
My character is 1.4units tall and my settings are:
vector Y: 2.5
Time: 0.3
Ease Type: easeOutQuad

I have a finish event to take the character to a falling animation from the peak of the jump, and on grounded sends to another event for a landing animation.

Hope that helps.

Edit: Copying the Get Axis Vector and Controller Simple Move actions from your run carries the direction over into your jump but as I'm doing a 2D platformer I left out the Smooth Look At Direction so the character doesn't switch directions mid-air but is still controlable.
« Last Edit: October 01, 2011, 09:05:48 AM by smiffy »

pandigital

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Animate Float
« Reply #2 on: October 07, 2011, 01:29:53 PM »
Thanks smiffy

Did you use a rigid body for gravity, or animate that as well?