playMaker

Author Topic: Animation Control: a few pointers needed  (Read 1673 times)

clandestine

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Animation Control: a few pointers needed
« on: December 17, 2012, 02:33:43 AM »
Hi guys, here is the deal: i'm creating the character controller for a SBK game and i need help!
I have a 'banking' (turning) animation of the rider leaning toward one side.
- Now, i want to setup it in a way that when the player presses the key, the animation plays and STOPS at the end waiting for the player to release the key, then if the key is released the animation clip plays backwards reaching the first frame (the default biker pose).
- The second case is when the player releases the key before the animation has reached its end, it immediately plays backwards until reaching the first frame.



Is that possible with playmaker?
what would be your advice in setting up such action?
Do i need to setup/export my animations from the anim package (in this case Blender) in a different way (for example creating the 'reverse' part of the animation as a separate clip)?

A million thanks in advance!
« Last Edit: December 17, 2012, 03:59:08 AM by clandestine »

clandestine

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: ANIMATION: changing clips midway?
« Reply #1 on: December 17, 2012, 03:22:19 AM »
I managed to setup the beginning of a controller for the character:
- is this a good direction to go?
- i'm using rewind for playing the animation backwards, but it plays a lot faster than normal, is there a way to control its speed?

thanks


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3627
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Animation Control: a few pointers needed
« Reply #2 on: December 17, 2012, 09:11:03 AM »
I would use Set Animation Time to manually control the animation:

https://hutonggames.fogbugz.com/default.asp?W17

Check normalize and you just have to worry about moving a float between 0 and 1.

BTW, great looking art as usual!

clandestine

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: Animation Control: a few pointers needed
« Reply #3 on: December 18, 2012, 02:50:01 AM »
Thanks for the advice Alex!
« Last Edit: January 11, 2013, 03:47:00 AM by clandestine »