playMaker

Author Topic: [SOLVED] Invert Curve not working?  (Read 1774 times)

Chaosgod_Espér

  • Playmaker Newbie
  • *
  • Posts: 7
[SOLVED] Invert Curve not working?
« on: January 15, 2015, 06:30:03 AM »
Hi there,

I want to create a Curve Float/Animate Float to animate my JumpSpeed variable.
This is the Action:

http://fs1.directupload.net/images/150115/fnpf283g.png

But it looks like the value is never getting lower. I tried to Compare the float to check if it is less than 0.1, but the Event is never triggered and my Character is flying upwards forever (as long as i hold down the Jumpkey).


Is it possible to invert the curve? cause if i change "From" to 0 and "To" to 1 or higher, it works (flying upwards faster and faster).
« Last Edit: January 18, 2015, 01:44:53 PM by Chaosgod_Espér »

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: Invert Curve not working?
« Reply #1 on: January 15, 2015, 10:23:36 PM »
I use animation curve v2, but if you click on the green curve, a window pops up.  You will have presets at the bottom to choose 1.

I'. assuming your speed is 1 that you want to go down to 0.  Just select a new preset or click on the handles, drag 1 side up to 1 and the other side down to 0.  The animation curve is set up for 1 sec (left to right) and from 0 to 1 (bottom to top).  just move the left upwards to 1 and the right one down to 0.
« Last Edit: January 15, 2015, 10:26:33 PM by wheretheidivides »

Chaosgod_Espér

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Invert Curve not working?
« Reply #2 on: January 18, 2015, 01:06:32 PM »
Okay - i tried it this way:

This is the States Actionslist:


This is the Animate Action:


The Curve:



To controll the Float value, i use my selfmade action Debug_Logever:



Logever returns a Debug.Log of the Float Value every Frame.

When Curve Float (tried with Animate Float V2, too) ends, the Float Value is:
Code: [Select]
Float is: 1.004368
So.. my curve starts at 0 and ends at 0. why is the float then 1+?


The Action "Check jumpSpeed" tests the float for a value "Less than" 0, and should start the Fall event.. But it is never 0..

I tried to set "TO" to 0, too. That results in no change of the float.[/s]

nevermind - works now.. simple set a float wrong in the Settings
« Last Edit: January 18, 2015, 01:44:40 PM by Chaosgod_Espér »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Invert Curve not working?
« Reply #3 on: January 18, 2015, 01:18:14 PM »
You are not indicating any type of Calculation for the Animation. The curve does nothing.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D