Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Bobyteal on January 07, 2017, 12:35:49 PM

Title: How to create gears for a boat with Playmaker ?
Post by: Bobyteal on January 07, 2017, 12:35:49 PM
Hi ;)

My brain is stuck on a problem, I am trying to build a ship that moves like this :


0 gear by default.
...

Now if you want to retro gear :


Screenshot of my Unity :
http://imgur.com/a/2Wxr7

I hope I was clear enough, if you can help me it will be really great as it will also helps with my general understanding of playmaker !
Title: Re: How to create gears for a boat with Playmaker ?
Post by: mdotstrange on January 07, 2017, 07:48:18 PM
Sounds like you need a multiplier-

So for setting your speed float- whenever you set it- multiply it by another float that will act as a multiplier- then you just change the multiplier to set the different speeds- you can change the multiplier float from within that FSM or outside of it as well.
Title: Re: How to create gears for a boat with Playmaker ?
Post by: Bobyteal on January 08, 2017, 07:08:05 AM
Alright I will try it but how do you make gradual speed ? I mean going from 0 to 3 speed smoothly for example, like an acceleration ?

Thanks
Title: Re: How to create gears for a boat with Playmaker ?
Post by: Chizzler on January 08, 2017, 08:02:21 AM
You'll be tracking your current speed and your target speed in variables. You can use the "Float Interpolate" action to smoothly transition your current speed up to your target speed.