PlayMaker Help & Tips > PlayMaker Help

Basic Character Animation FSM setup

(1/2) > >>

wyliam:
I'm admittedly new to FSMs, I've been attempting to replace the current "ThirdPersonAnimation.cs" script with Playmaker. I've a MoveFSM that moves the character and contains some anim switching actions. These anim switching actions change the animation state in AnimFSM. (See attached screenshots).

Currently the game crawls to a halt as the switch flips between "Basic Move" and "Update Idle" (or Walk/Run). Update Idle is a state that checks to see if the AnimFSM is in the Idle state already, and switches it if it isn't. Is this not the preferred method (constant state switch)? I don't want to wait for the animation to complete, as interruption will be expected.

Thoughts?

Alex Chouls:
I posted a tutorial video showing the setup I normally use... On the road right now, but I'll look at your FSMs this evening...

marvmiller:
Is 'Get Controller Speed' a custom action?  I don't seem to have it..

Alex Chouls:
You can use Store Magnitude in Get Axis Vector. But I will add the ability to get the Velocity and Speed in Controller Simple Move, so you can use the speed after collisions...

wyliam:
Yeah- "GetControllerSpeed" is a custom action that returned the controller.velocity.magnitude instead of the velocity. I hacked it from "GetControllerVelocity".
BTW, I LOVE that I can create custom actions.

One thing that would be useful for first time users are better explanations of certain actions. For example, the "SequenceEvent" usage is a bit confusing. An example of it's use (written out would be fine) in the Action reference section (like Unity does with their script references) would be helpful. Just a suggestion.

@alexchouls: where is the tutorial video with your setup you referred to? Is that in the Simple Character Control thread?

Navigation

[0] Message Index

[#] Next page

Go to full version