Drag and Drop

Get help using Construct 2

Post » Thu Oct 09, 2014 3:14 pm

hello there :) how can i add event like "is drag and drop = true"?

ps i mean not if object have this behavior, but if player is dragging the object.
B
6
S
1
Posts: 53
Reputation: 506

Post » Thu Oct 09, 2014 3:26 pm

Create a new variable and set it to 0. Then when you're dragging set it to 1. When the dragging ends set it to 0. Then you can use the 'compare two values' action to check if the variable is equal to 1.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Thu Oct 09, 2014 3:39 pm

There's already an event for what you want:

DragnDrop.png


You can invert it by right clicking on the event then "Invert"
You do not have the required permissions to view the files attached to this post.
B
21
S
6
Posts: 244
Reputation: 2,655

Post » Thu Oct 09, 2014 3:39 pm

thank you)) i did that trick a few times, but completely forget this time)))

Wisdoms, thank you too)
B
6
S
1
Posts: 53
Reputation: 506


Return to How do I....?

Who is online

Users browsing this forum: part12studios and 9 guests