The simplest method would be to use multiple image points.
for each objectThatyouwantTopick
-distance(pointofexplosion.x,pointofexplosion.y, objectThatyouwantTopick.x, objectThatyouwantTopick.y) < radius, do stuff
I guess try posting a cap.
My only other guess goes along with what Rojohound said.
The canvas uses the gpu, so you may have to wait a tick before the paste.
I usually used the function, call function after delay.
newt PC touch screen, If I understand what you mean by this, use a cursor, isn't it ?
Either, or.
Try send to front for the objects that are missing. Also you don't need the for each for any of the events.
Is any part of the canvas off screen when you do the paste?
Works fine for pc touch screen. May be mobile specific, perhaps even device specific.
Not sure what you mean, Im guessing, just delete the y's.
What about allowing the user to save those contents , like right click save as, or click an object, open a save dialog?
I know the regular context menu is disabled, so the latter would probably be best.
Just add the touch object, and switch out mouse.x, mouse.y, for touch.x, touch.y, and the relative conditions.
drag and drop touch
Note you will need the mouse object for preview, haven't tested on export.
Sorry to keep begging for stuff, but I was wondering if it would be possible to have the canvas export an image?
If its just sprite.value("hp") = 0, destroy, then it should work.
Try hp <1, if it still happens its a bug or how the picking is set up.
Ashley
It might help, but you still can't know what the uid is till runtime, so basically you would end up doing object[object.variable("")].
What about an id that the user can create from the editor, or at runtime?
Well you already know that the first array is (0), so the one you create is (1).
Develop games in your browser. Powerful, performant & highly capable.
You could also just use one sprite, and use frames/ animations to represent the sprites.