Skip to content

FlxButton cant be pause,and click any where on the stage will callback #56

@moly

Description

@moly

click the button to pause the game , but when the game paused , you click any where in on the stage, the trace() always fire

package test
{
import org.flixel.*;
public class Bug extends FlxState
{
override public function create():void
{
super.create()
this.add( new FlxButton(100,100,"TESTTESTTEST",onClick))
}
override public function update():void
{
if(FlxG.paused)return
super.update()
}
private function onClick():void
{
FlxG.paused = true
trace("what's wrong Huh?Huh???")
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions