Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: DanaMazzo on May 13, 2014, 04:30:20 PM

Title: How to prevent audio play on start[SOLVED]
Post by: DanaMazzo on May 13, 2014, 04:30:20 PM
I made some FSM's but audio start to play before I press any button.

Why is that?

(http://i.imgur.com/g44btqN.jpg)
Title: Re: How to prevent audio play on start
Post by: Lane on May 13, 2014, 05:26:41 PM
Because its in the start state.

When you put actions in a state then they are immediately run when that state is made active. The start state is active as soon as the object is turned on so the sound is immediately played.

Better is in the start state make a GUI Button which when clicked will fire an event to go to another state where the sound is played.
Title: Re: How to prevent audio play on start
Post by: DanaMazzo on May 14, 2014, 02:50:12 AM
Thank you.