playMaker

Author Topic: animator step by step [SOLVED]  (Read 1600 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
animator step by step [SOLVED]
« on: July 26, 2017, 05:21:53 AM »
hello everybody, bonjour tout le monde !

i'm actually working on a system that is a bit tricky,
i have a character, wich is using many animations states, and i would like this animations to be randomly played and especially a number of loops time wich can be different,

for exemple:
play talking animation 1 time, once it is done go to next anim and
play push ups randomly (3-10) times then trigger the next animation
play squat randomly (5-8) times then trigger the next step
etc...

my problem comes essentially because when i would like to get the loop count in a state, it takes the loop count of the peviously played animation, wich is not completly finished because of transition.
so i'm a bit lost in the logic to get the animations finished and tart a new one.

i also seen the script Playmaker animator state synchronisation on the wiki, but it's not in the actions and can't find the script included in last version ...
« Last Edit: July 26, 2017, 05:33:04 AM by blackant »

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: animator step by step
« Reply #1 on: July 26, 2017, 05:32:46 AM »
well...

i'll explain you, this is not complicated so much. ( i just fund the solution after writing the question like usual :p )

when you trigger the next animation to play, the previous animation is not completly finished
so you can add a test string to get the name of the actual animation state and ask to exit only when it match the desired name.
once it is done, just make your loop count test like you wish

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: animator step by step [SOLVED]
« Reply #2 on: July 26, 2017, 05:33:59 AM »
ok thanks to me for the quick answer.. that was effictivelly not so hard, i spended 2 days to get it :p

 ;D

by the way i don't know where to find the script

Playmaker Animator State synchronisation.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: animator step by step [SOLVED]
« Reply #3 on: July 26, 2017, 07:10:08 AM »
Hi,
I got it here for you  8)