playMaker

Author Topic: Animation Update  (Read 1879 times)

Budde88

  • Full Member
  • ***
  • Posts: 165
Animation Update
« on: December 20, 2016, 03:24:39 PM »
Hey,

I have an animation with 100 keyframes.
The animation is the liquid inside of a test tube.

I want to control it using a float variable called 'potion'.

So if I add +5 to 'potion' it will animate through keyframe 0-5
and if I add another +20 it will animate through keyframe 6-25
So basically it will play a smooth animation.

I'd just like to know what actions I would need, and which script variable
should I link with the 'potion' variable.

Thanks

Budde88

  • Full Member
  • ***
  • Posts: 165
Re: Animation Update
« Reply #1 on: December 21, 2016, 06:24:31 AM »
Would really appreciate some help with this. :)

Thanks

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Animation Update
« Reply #2 on: December 21, 2016, 07:53:17 AM »
You could split the animation into separate clips for the frame ranges- then use the animator actions to play the animations.
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Re: Animation Update
« Reply #3 on: December 21, 2016, 04:22:03 PM »
If this adding of potions is defined by you like, add 5,10,15.. not randomly, you can try to use events on animations. If there its randomly you can try to use blend tree in animator.