playMaker

Author Topic: [SOLVED] Events based on frames of an animation  (Read 4757 times)

tomo

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
[SOLVED] Events based on frames of an animation
« on: April 17, 2012, 04:49:45 PM »
Hey guys,

So I am working on a project at the moment and needed to trigger a few things at certian times in an animation and wonder if you could give me some guidance (I am quite new to this visual programming and an artist ha!).

So I read that I can send events to an FSM using animation events. I worked out how to place these by duplicating the animation file attached to my model which removed the "read only" option and allowed me to place the animation events. But I ran into trouble when i set the event as a "ChangeState". So i did as this info recommended

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

But from here I am not sure how to set up playmaker to receive this animation event when the animation plays out in my scene and then have playmaker trigger another FSM event like burst of particles,play sound or a turning a mesh renders on/off.

This would open unity up for me as an artist an incredible amount so would be great if anyone could offer some guidance on this problem.

Thanks :)
« Last Edit: April 17, 2012, 10:13:00 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Events based on frames of an animation
« Reply #1 on: April 17, 2012, 07:56:21 PM »
Hi tomo,

I've updated the docs to make it a little easier to understand:
https://hutonggames.fogbugz.com/default.asp?W181

Note the method has changed to SendEvent in the latest version (instead of ChangeState).

Quote
This would open unity up for me as an artist an incredible amount so would be great if anyone could offer some guidance on this problem.

I agree! Let me know if this helps...

tomo

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: Events based on frames of an animation
« Reply #2 on: April 17, 2012, 09:35:38 PM »
Hey alex,

Thanks soo much for taking the time to update the docs it makes sense now I have it playing sounds and everything :). You made a few programmers at my company very happy now I dont have to hassle them to set stuff up for me!

Thanks again,

Tomo

tomo

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: [SOLVED] Events based on frames of an animation
« Reply #3 on: April 18, 2012, 08:34:48 PM »
Hey another issue has just poped up when I moved into a new project and went to set this up. When I set up the SendEvent it told me that the (function not supported). And I can no longer get it to send out the event :( I tried everything and cant work out what I did differently this time around - might it be the playmaker package didnt fully load.

Cheers,

Tomo

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: [SOLVED] Events based on frames of an animation
« Reply #4 on: April 18, 2012, 09:23:54 PM »
Can you confirm that you're running Version 1.3.2?

Main Menu > PlayMaker > About PlayMaker

Also have you tried restarting unity?