PlayMaker Help & Tips > PlayMaker Help
Set FSM Question
henk:
Hi,
Here's a link to a video that describes a problem that I'm having with "Set SFM Float".
http://gallery.me.com/henkdawson#100708
Let me know what you think.
Thanks,
Henk
LordShaggy:
ok, if your problem is exactly the same as this guys.
I would recommend first doing a (find game object) and store that reference. It is a good practice to get into until 1.2 comes out. I generally like to keep a reference of what I want to talk to. I would suggest it be prepitory.
-----
Alright, lets see if we can figure this out.
-I think store magnitude does not work in teh way he thinks it does.
There is an actions called (GET OBJECT SPEED). Use that instead.
henk:
Hi LordShaggy, I'm not real clear on what you are suggesting but I'll look into the (GET OBJECT SPEED) action. Thanks, Henk
henk:
Hmm... I'm still stuck.
Any ideas would be greatly appreciated.
Thanks,
Henk
Alex Chouls:
Hi henk,
Cool setup and little guy!
However, you don't need the Get Axis action for point and click movement. GetAxis measures input from keys or a gamepad.
Sounds like you want to gradually increase your character's movement speed while he's moving, starting at zero and accelerating to some max speed.
There's a quite a few ways to do this in Playmaker, but one way that gives you a lot of control is Animate Float. This lets you draw the acceleration curve for your character.
So just replace Get Axis with Animate Float controlling the movement speed.
If you also want to limit the physical movement speed (not just the animation), set the Move Towards Max Speed to the movement speed.
Hope this helps... let me know how it goes.
EDIT: Another tip: Check Debug in the State Inspector to see the current value of action variables, so you can check that they're doing what you expect. E.g., in your example, I'm guessing you'd see movement speed stuck at zero.
Navigation
[0] Message Index
[#] Next page
Go to full version