playMaker

Author Topic: How to prevent audio play on start[SOLVED]  (Read 1802 times)

DanaMazzo

  • Playmaker Newbie
  • *
  • Posts: 11
How to prevent audio play on start[SOLVED]
« 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?

« Last Edit: May 15, 2014, 12:47:18 AM by jeanfabre »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to prevent audio play on start
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

DanaMazzo

  • Playmaker Newbie
  • *
  • Posts: 11
Re: How to prevent audio play on start
« Reply #2 on: May 14, 2014, 02:50:12 AM »
Thank you.