Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Redhawk on January 21, 2014, 11:15:57 PM
-
UPDATE - I made some videos on how to do this.
http://www.youtube.com/playlist?list=PLm7dDCs_gFwOEFTkwHXGjUgfHSOHdiO1H
First, grab the Mecanim Add-On from Wiki
https://hutonggames.fogbugz.com/default.asp?W1031
Create your Animations the new way in Unity. I set my pivots and created 3 animations - DoorClosed (nothing in animation), DoorOpen (rotation curve Y 105), DoorClose (rotation curve Y 0).
Set up your Animator (see picture).
Playmaker Setup - See Image
- Wait For Click to... - Mouse Pick Event. Both are setup like the picture, except Close points to CloseDoor
- DoorOpen (See Picture)
- Set Animator Bool - Parameter=OpenDoor, Value is Checked
- Wait - Time = 5, FinishEvent=Finished. Do this so you don't have an infinite loop
- DoorClose (See Picture)
- Set Animator Bool - Parameter=OpenDoor, Value is Not Checked
- Wait - Time = 5, FinishEvent=Finished. Do this so you don't have an infinite loop
-
Great Tutorial Redhawk! Very useful to understand how to trigger animation in mecanim from Playmaker.
This could be used for any kind of animation, I used to animate a character depending on a proximity trigger and it works.
You're awesome!
-
Thanks. At some point I plan on doing some other tutorials too even though Lane's tutorials are much better.
Yes, the mecanim add on is very handy. I haven't built out a character yet, but I can definitely see how Playmaker is a great "go between" between nearly anything.
-
Cant thank you enough for this Chris! Will definitely be implementing this method into my new project.