playMaker

Author Topic: Running avatar animations with a trigger FSM  (Read 13734 times)

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #15 on: July 28, 2015, 12:34:42 PM »
Thanks Dino
still no luck !
That would be really useful  :) !!
Ta Hugo

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #16 on: July 29, 2015, 03:08:22 PM »
Thanks Dino.. look forward to your sample !!!  :)
H

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Running avatar animations with a trigger FSM
« Reply #17 on: July 29, 2015, 07:00:02 PM »
Hi,
I made a quick sample. i hope this helps.

for trigger enter/exit and for the sync states.

if your bool is switching back and fort but the animation still won't
check your exit time on you transitions

you can just add it to your project and play the scene and delete the sample folder when done
« Last Edit: July 29, 2015, 07:04:30 PM by djaydino »

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #18 on: July 30, 2015, 11:32:40 AM »
Hi Dino thanks for the Animator sample
Much appreciated !
So set my FSM exactly the same.
I think what i was missing was a collide tag !
So ive done that as tagged "Player" to my sword tip.. that penetrates my trigger cube ( your Trigger cube equivalent )
But still dont work :(
Best Hugo

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Running avatar animations with a trigger FSM
« Reply #19 on: July 30, 2015, 05:09:23 PM »
Hi,
does the trigger not work or the animation?

when the animation does not work try this
when you run it and change the bool in the animator does it then work?
If not try switching of "has exit time".

maybe you can send me that part of your project so i can see whats wrong?

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #20 on: July 31, 2015, 07:43:20 AM »
Hi Dino
Ive just swapped out your 'cube animated' in your scene  for my fencer
to see if that works, with your settings and added a "play sound" to the trigger
which works . put in bool names etc .
Now the bool parameter tick box no longer changes animation .
So now trying different combos of what you suggested !
Im getting an error message
Parameter 'Hash 1488211192' does not exist.
UnityEngine.Animator:SetBool(Int32, Boolean)
Best H
« Last Edit: July 31, 2015, 07:55:54 AM by Hugo111 »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Running avatar animations with a trigger FSM
« Reply #21 on: July 31, 2015, 06:17:30 PM »
Hi,
you might have changed the parameter name accidentally
on the "animator set bool" action.

if not try removing the action and put the action back in again

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #22 on: August 01, 2015, 05:58:14 AM »
Hi Dino
Tried those things many times  rechecking copy paste even but no luck.
Mmm  i will keep try rebuilding things over the weekend, of no luck i will some how send you what i have.
Thanks for all of your help so far !!
H


Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #23 on: August 01, 2015, 07:56:13 AM »
Hi Dino
Yea finally sucess !!!
I just renamed everything, swapping out values and now it works, im not sure why
but im not complaining !!!
Now i need it to work with multiple action but its a start !!
If you are ever in London drop me a line and ill show you around the Royal Opera
House which is where i work, and sit you in on some ballet/opera  ( there is a first time for everything if you havnt already been)
Thanks again best Hugo
 

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Running avatar animations with a trigger FSM
« Reply #24 on: August 01, 2015, 02:01:43 PM »
Hi,
I'm happy to help, and maybe i'll drop by in London when i have some free time :)

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #25 on: August 01, 2015, 03:54:19 PM »
HI Again all
Out of general interest ive just added multiple FSMs to an idle, ( which now work fine ) but it seems, even it you type in the Parameter names they dont seem to work first time, maybe its the order you set your FSM up in... but changing the Parameter names to exactly the same thing seems to work/help  ??!! 

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #26 on: August 18, 2015, 02:25:41 PM »
Hi Dino
I seem to have a small problem! SetAnimationBool has gone missing tried redownloading scripts etc but cant seem to retrieve it .Its gone from playmaker actions .
Any ideas ?

Could Not Create Action: t_Small lunge : FSM: Wait for exit: SetAnimatorBool (Maybe the script was removed?)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Running avatar animations with a trigger FSM
« Reply #27 on: August 18, 2015, 03:13:18 PM »
Hi, that is strange, do you have an older backup?

before you try what i will tell you, please make a backup from your project (copy your project folder somehere else)

try this : go to Assets (top left) and reimport all

then search on the ecosystem for "Animator proxy" (package)
if it says that it is imported click delete and then click get

Hugo111

  • Playmaker Newbie
  • *
  • Posts: 45
    • UFENCEVR
Re: Running avatar animations with a trigger FSM
« Reply #28 on: August 19, 2015, 11:47:05 AM »
Hooray
Yes id looked in the ecosystem, but not in that way, thanks loads .
Best Hugo 
« Last Edit: August 20, 2015, 04:51:01 AM by Hugo111 »