Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coffeeANDsoda on February 05, 2015, 05:24:53 PM

Title: Making a sound stop when player lifts a key
Post by: coffeeANDsoda on February 05, 2015, 05:24:53 PM
I seem to have a problem getting this to work properly. I have a game object with a FSM. After the player gets key down at the start state transitioning to another state I use play sound action. Problem is, when I set up another state to mute or stop the sound before returning back to Start, the sound not only doesn't stop but plays it again when I repeat key down action causing the player to wait for the sound to play through.

How can this be fixed?
Title: Re: Making a sound stop when player lifts a key
Post by: Sly on February 06, 2015, 10:54:35 AM
Can you add a picture of your FSM and the sound action you used?
It will probably help to find out what's going wrong :)
Title: Re: Making a sound stop when player lifts a key
Post by: coffeeANDsoda on February 06, 2015, 08:39:32 PM
Can you add a picture of your FSM and the sound action you used?
It will probably help to find out what's going wrong :)

Here you go.

https://db.tt/0Djc8TqI

https://db.tt/Mr3LuDbm

https://db.tt/bmfYf4cc

I'd like to know what actions would make it audio stop when a key if lifted. Or if this has to do with Play On Awake box being checked, located in the Audio Source component attached to the object.