Music playing Issue - Windows/Linux

DylanMeeble

  • Posts: 24
The issue I'm having is only when I test my game in either Windows or Linux. Flash works great.
Stencyl version: 3.4.0 (beta3)

So have a trigger event in behavior block that runs in the create event for the scene. The event in the behavior checks if a new song should be played and which song based on what I selected for that scene. Unfortunately, no music plays.  :-\

I tested just playing the music when the scene is created and that works, but the setup I have allows me to set the music for the scenes easier as well as easily allow a "loop song" to play right after the "start song" within the same behavior.  I also added print to console blocks to the behavior and it seems the event is never triggering in Windows/Linux. So can I not run a trigger event block on a create event? If not, could anyone give me another solution for the outcome I want? Thanks!

rob1221

  • *
  • Posts: 9473
Quote
So can I not run a trigger event block on a create event?
Not if the event is in another behavior that you can't guarantee is active before the current behavior.  Try adding a small delay.

DylanMeeble

  • Posts: 24
Yup, that did it. Thanks a bunch!