Limit drag and drop behaviour to ONE drag at a tim

Get help using Construct 2

Post » Tue Nov 05, 2013 10:07 am

Hello. I want to limit the drag and drop behaviour to only allow one object to be dragged at a time. It's for touch devices.

I've tried this by using the events as shown in the .capx file.. but I can't get it to work. I'm obviously doing it wrong, but I think what I made makes sense.. Anyone have any tips for making it work?

.capx file

Posts: 16
Reputation: 232

Post » Tue Nov 05, 2013 12:14 pm

I am on my mobile atm so cant open your example.

But what I would do:

create a global variable called dragging.

Then on Drag start set it to 1

Then just check that variable whenever you start a drag, and dont allow it if it is 1.

I can make you an example tonight if this is not enough information.
Posts: 347
Reputation: 4,451

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests