Skip to content

Sound only plays after unpausing #238

@mrnerdman

Description

@mrnerdman

This is my create() function for my intro state, where I want to play a little ditty:

[Embed(source="../lib/intro.mp3")]
public var musicIntro:Class;

override public function create():void {
    //...insert irrelevant stuff here
    FlxG.play(musicIntro);
    super.create();
}

However, the sound only plays if I unfocus from the game(where the game dims and there's a big play button), then focus again.
Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions