Hello,
I am trying to use a touch screen to drag and drop icons around. In the attached capx, if you touch (or mouse click) on a blue icon, drag and drop works as expected. But I'd like to have an adjustable margin around the icons as well, so that if you touch the screen and you're a little off of an icon, but it's nearby, that icon is still dragged.
By doing a distance check between the icons and the touch location, I can select an icon and move it to the touch location, but then drag and drop (which is enabled) is "inactive" unless the user lifts up their finger and taps again. I could just make a larger collision polygon, but that has many downsides.
https://dl.dropboxusercontent.com/u/185 ... ouch1.capx
Other functionality in this capx is:
Touch large purple button on start for fullscreen. Triple touch or ESC to exit fullscreen (purple button reappears).
On touch start makes a red icon top left visible, on touch end toggles it back to invisible.
The best workaround I can think of is to have a variable toggle that bypasses "drag and drop" to set the icon's position to the touch position every tick until it's released. I suppose that's all the Drag and Drop behavior is doing anyway, so maybe that's not a big deal?
Thanks!
EDIT: I have two icons, and if I delete the Drag and Drop behavior from one, then the other works as expected?!