playMaker

Author Topic: Playing animation clip on mouse down  (Read 2225 times)

blogsabout

  • Playmaker Newbie
  • *
  • Posts: 1
Playing animation clip on mouse down
« on: September 24, 2016, 09:20:04 PM »
Hi there

I'm new to Playmaker and Unity and I'm enjoying learning.
I have made some fun FSMs with mouse events.
However I can't get an animation to work.
Problem: I'm having a some mixamo animation clips, a couple of them are attached the character as "idle" so he does some various moves.
I have set up a "trigger" (with starts on a mouse down) with particles, sounds etc and used the "play animation" method and have set it up to call an animation clip, the game object is referring to my character otherwere in the scene, but that is not enough it seems. (Ie I have box of food - when I click that I want the character to "react")

I doesn't play the animation clip - is it because I need some kind of "bool" or soemthing to "overwrite" the exisiting animation that is attached to the character?
I'm running a seperate FSM on the character where I have set up 3 different anim clips that  in 3 different states, so each is being played and then go back to start and start all over again.

I'm not sure what to do now, any direction would be much appreciated

Cheers

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playing animation clip on mouse down
« Reply #1 on: September 25, 2016, 08:42:45 AM »
Hi,
i think you should look into "animator" for character animations.

This tutorial looks good to start with animator
( i did not watch the whole thing but i looks good)


there are several actions to work with the animator