Hi, I've searched the forum for an answer to this, and I've seen the idea that you can disable the layers' actions if you put them in a group and enable / disable based on if the layer is visible and this works for a menu with sprites as buttons etc..
however in my example I'm using this code to drag out newly created sprites and put them on a new layer
My goal is to be able to hide the spites that you drag (to drag out the newly created sprite) and not be able to click them when the layer is invisible.
Basically what would be perfect would be a way to disable drag and drop for all the sprites on (in this example) the 'BeachDraggables' layer - when that layer is hidden, and still be able to drag the sprites on the 'Dragged' layer
I've tried adding the sprites to a family and disabling the family drag and drop behaviour but then they all stop dragging (including the ones on the layer 'Dragged')
hopefully this makes sense and any help would be appreciated
Would adding a condition on drag and drop start if sprite is on layer "blabla" (layer is invisible) drop sprite work?
Develop games in your browser. Powerful, performant & highly capable.
[quote:37qytk0g]Would adding a condition on drag and drop start if sprite is on layer "blabla" (layer is invisible) drop sprite work?
I tried this:
For some reason this stops me dragging it out at all O_o