Search found 2 matches

by herrinbleu
Sat Apr 08, 2017 4:40 am
Forum: Support and Development
Topic: Click and Drag with Z-order
Replies: 3
Views: 3048

Re: Click and Drag with Z-order

Thanks for the quick reply!! I managed to figure out how to work around it with another method.. function dragging_detect(x, y, button) for i,v in ipairs(objects) do if x > v.x and x < v.x + v.width and y > v.y and y < v.y + v.height then v.dragging.active = true v.dragging.diffX = x - v.x v.draggin...
by herrinbleu
Fri Apr 07, 2017 1:17 pm
Forum: Support and Development
Topic: Click and Drag with Z-order
Replies: 3
Views: 3048

Click and Drag with Z-order

At the moment, I have several objects overlapping each other and when I click and drag, overlapping objects are all moved. function dragging_detect(x, y, button) for i,v in ipairs(objects) do if x > v.x and x < v.x + v.width and y > v.y and y < v.y + v.height then v.dragging.active = true v.dragging...