How to register when i click an object from a flxgroup

26 views
Skip to first unread message

Leo Machado

unread,
Sep 14, 2015, 9:42:19 PM9/14/15
to HaxeFlixel
Hello, i want to grab an object, which is a button, i putted this object in a group which i created 3 buttons.

Now, how should i register the click?, ps: if possible in the same class of the button so i dont get to fill the playstate 

SruloArt

unread,
Sep 15, 2015, 3:22:48 PM9/15/15
to HaxeFlixel
* What do you mean by "register the clicks"? If you want to add mouse events to an object, look at this demo: http://haxeflixel.com/demos/MouseEventManager/
* Your object's being within a FlxGroup doesn't make much of a difference.
* You can use it from wherever you want.
Reply all
Reply to author
Forward
0 new messages