playMaker

Author Topic: Play animator in reverse using negative speed?  (Read 690 times)

oishiiniku

  • Playmaker Newbie
  • *
  • Posts: 6
Play animator in reverse using negative speed?
« on: October 20, 2021, 02:34:13 AM »
Hi there,

Is it possible to use negative numbers with the Set Animator Speed action to play an animation in reverse? I'm trying it at the moment, but it just seems to stop the animation. But if I enter a negative number in the Animator state itself (before hitting play in the editor) then it plays the the animation backwards fine.

Any help would be great!

Thanks,
Nick.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7622
    • jinxtergames
Re: Play animator in reverse using negative speed?
« Reply #1 on: October 20, 2021, 07:07:30 AM »
Hi,
Have you tried with Set Animator Float and set a float variable.

Then on the Animator state use the multiplier Parameter and place the variable there.

oishiiniku

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Play animator in reverse using negative speed?
« Reply #2 on: October 20, 2021, 11:58:40 AM »
Hey, Thanks for the suggestion!
I followed your suggestion and it works (yay!) but I the animation won't loop in reverse - It just stops when you reach the first frame. Is it possible to loop anims with negative animation speed?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7622
    • jinxtergames
Re: Play animator in reverse using negative speed?
« Reply #3 on: October 20, 2021, 02:54:04 PM »
Hi.
It should loop.
On the animation file, is the loop time enabled?

in our game i'm using it to move up/down a ladder.
(it is sprite based, but i think that it should not matter)

oishiiniku

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Play animator in reverse using negative speed?
« Reply #4 on: October 21, 2021, 02:07:33 AM »
I had loop time enabled, but not loop pose. Now that both are checked it works. Thanks for your help!