How to make drag and drop application

Get help using Construct 2

Post » Sat Feb 04, 2012 5:23 pm

Very useful... I will use the example of @Yann =)
B
203
S
37
G
13
Posts: 136
Reputation: 29,523

Post » Sat Feb 04, 2012 5:46 pm

ROJOhound posted a couple of good Drag and Drop/Snap to grid example's on the Construct Classic forums yesterday.

Obviously you will need Classic on your system to view them.

LINK
B
19
S
6
G
7
Posts: 1,205
Reputation: 7,298

Post » Thu Feb 28, 2013 2:08 am

Hi!

I came across your example. It is very helpful. The only thing I'm having trouble understanding is, the expressions part. Like how do you determine the position of the area which you want the draggable elements to be reverted back to if it overlaps with another element...?

Can I just set the position manually without all those expressions?

Do you have a tutorial on this example?

Thank you so much :)
B
9
Posts: 44
Reputation: 570

Post » Thu Feb 28, 2013 2:31 am

Hi!

I noticed that your drag and drop example, actually has specific areas for the draggable elements to be dropped into. As in, objDiamond is set for objDiamondTarget.

I would like to
1) make draggable elements able to to be dropped into any droppable areas. 2) And if it overlaps with another element, it will revert back to its original position.

Which part of your event sheet explains these points?

I hope to hear from you soon.

Thank you. :)
B
9
Posts: 44
Reputation: 570

Post » Mon Nov 18, 2013 8:08 pm

thnaks Yann for your great Example
B
85
S
31
G
22
Posts: 384
Reputation: 18,587

Post » Thu Sep 04, 2014 2:45 pm

@Yann and @Wastrel your examples are not opening
B
5
Posts: 3
Reputation: 229

Post » Sun Sep 14, 2014 10:42 am

@amitcv86
You probably meant that the dropbox link wasn't working anymore.
Now it should.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sun Sep 14, 2014 5:51 pm

I was looking for this and found @Yann example useful. However, I have one doubt. When I drag and drop a sprite, it overlaps with other sprites and doesn't detect collision. I don't want my sprites to overlap each other when I drag and drop them and move them over other sprite. How do I do this?
B
3
Posts: 1
Reputation: 177

Previous

Return to How do I....?

Who is online

Users browsing this forum: Bad Wolf, davides, NRABrazil, Vallar, WhosWho and 27 guests