easel icon indicating copy to clipboard operation
easel copied to clipboard

How can I add a mouse event for a Sprite ?

Open FlashTang opened this issue 14 years ago • 1 comments
trafficstars

Sorry , I don't know where to post such thread , so in issues page I’m new to haxe How can I add a mouse event for a Sprite ? ( like jeash) For example , add a mouse down and up event , realize drag and drop a Sprite/Group

If can not add event for Sprite ,how I can get mouseX of a Sprite ? I know I can use clientX - Sprite.x - Canvas.offsetLeft
But it's messy , and can not use globalToLocal or localToGlobal ? , do I have to iterate Group ?

Sorry for too many questions , if adding event for sprite is possible ,please ignore other questions. It would be great to have a Graphics class for drawing vector in Sprite Forgive my English Thank you so such

FlashTang avatar Jul 30 '11 06:07 FlashTang

I stopped working on Easel before writing a real game in it and adding things like mouse support.

If you're looking to build HTML5 games in haXe, I suggest sticking to jeash. I'm also actively working on another engine called Flambe and a production quality game on top of that. Only Flash compilation at the moment, but everything's abstracted enough that I plan to add HTML5 compilation in the near future :)

Bruno

aduros avatar Jul 30 '11 20:07 aduros