playMaker

Author Topic: Float Compare is not validating the transition  (Read 1145 times)

MlleBun

  • Playmaker Newbie
  • *
  • Posts: 28
Float Compare is not validating the transition
« on: December 16, 2021, 03:01:57 AM »
Hi,

I'm making a simple comparison of the Horizontal axis (GetAxis) to transit to another state. If Horizontal is < 0, I want to transit to MoveLeft state. But even if Horizontal is equal to -1, I stay in the current sate. Am I missing something ?
Note : It's not working with or without the NextFrame Event.

Thanks for any help!

// Update : When I don't use GetAxis and change Horizontal variable manually, the transition works. An issue with GetAxis?
« Last Edit: December 16, 2021, 03:06:43 AM by MlleBun »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Float Compare is not validating the transition
« Reply #1 on: December 16, 2021, 08:50:19 AM »
Hi.
your state is set as sequence and you have every frame enabled.

if your state is set as sequence it will wait for the previous action to finish before starting the next action.

and due to 'Get Axis' has every frame on, it will never finish.

MlleBun

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Float Compare is not validating the transition
« Reply #2 on: December 16, 2021, 02:29:35 PM »
Hi djaydino, thanks for the reply. I understand the logic on sequential actions but how come it works in this tutorial ? Apart from the NextFrame action, I have the same actions and setup  :o
« Last Edit: December 16, 2021, 02:31:30 PM by MlleBun »

MlleBun

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Float Compare is not validating the transition
« Reply #3 on: December 16, 2021, 02:54:59 PM »
I tried to make a single state to move a cube with GetAxis. Even this is not working  :(  Is the action GetAxis bugged in update? I'm using 1.9.4 version.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Float Compare is not validating the transition
« Reply #4 on: December 16, 2021, 03:09:41 PM »
Hi.
On the video, sequence is not enabled.

in the state window right click on a empty space then disable Action Sequence.

When this is disabled (it should be by default disabled)
then all actions will start from top to bottom, but i will not wait for the previous action to be finished.