Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: clandestine on December 17, 2012, 02:33:43 AM

Title: Animation Control: a few pointers needed
Post by: clandestine 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.

(http://outburners.com/images/question01.jpg)

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!
Title: Re: ANIMATION: changing clips midway?
Post by: clandestine 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

(http://outburners.com/images/question02.jpg)
Title: Re: Animation Control: a few pointers needed
Post by: Alex Chouls 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!
Title: Re: Animation Control: a few pointers needed
Post by: clandestine on December 18, 2012, 02:50:01 AM
Thanks for the advice Alex!