Replies: 1 comment 11 replies
-
In your project xml see if you have an asset tag that omits .ogg files on specific targets |
Beta Was this translation helpful? Give feedback.
11 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
today i was planning to add some sound effects to my game but everytime i used FlxG.sound.play() or FlxG.sound.playMusic() the game would crash when trying to execute any sound related lines. weird thing is, this happened only on windows and when i tried playing the sound effect when i compiled the build in html5 it worked completely fine. even the snippet for FlxSound crashed when built on windows, but worked completely fine on html5. dunno how to fix this, would be greatly appreaciated to know the issue. here is the snippet i used:
to note: when opening it in a debug windows build, it gives the error "uncaught exception: null access" after crashing. hopefully this helps.
Beta Was this translation helpful? Give feedback.
All reactions