LittleStain
I'm doing an application where several images are loaded in runtime and then put into animation frames of a single sprite.
I then create instances of that sprite and set each one into a different animation frame. (Thus, i have a bunch of images on the canvas)
Now, the collision polygon of each of these instances is its bounding box (can't change that on runtime).
All I want to do, is when I click on one of them (on a transparent area), ignore the click, check if there's another sprite instance under the mouse pointer, and fire a click event on that one instead.
Thanks for bringing into attention the canvas plugin. I'll give it a go!
EDIT: Maybe this is a good place for a request. Ashley, how difficult would be to implement a feature (both in the editor and on runtime), where mouse events ignore completely transparent pixels on a sprite?