HaxeFlixel – FlxMouseEventManager

HaxeFlixel – FlxMouseEventManager
HaxeFlixel – FlxMouseEventManager

HaxeFlixel - FlxMouseEventManager FlxMouseEventManager allows FlxSprites to listen to mouse events like MouseDown, MouseUp, MouseOver and MouseOut. To activate it, simply add sprites to the manager and implement the event callbacks: import flixel.input.mouse.FlxMouseEventManager; var sprite = new FlxSprite(); FlxMouseEventManager.add(sprite, onMouseDown, onMouseUp, onMouseOver, onMouseOut); function onMouseDown(sprite:FlxSprite) {} function onMouseUp(sprite:FlxSprite) {} function onMouseOver(sprite:FlxSprite) {} function onMouseOut(sprite:FlxSprite) {}

Categories and tags of the game : Demonstration, Flixel, Mouse-only, Other, Single Player