How do I resolve this drag drop ?

Get help using Construct 2

Post » Wed May 21, 2014 10:52 am

Hello,
my idea is to do a little coloring pictures for kids.
i have "3" pictures with black color and "3" other with colors.
i want to drag each colored animal to his black picture.
Example:
when i drag a colored mouse picture to a cut black picture, the engine will refuse the drop and return the picture
to its origine, else he will paste the picture.

Thanks
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778

Post » Wed May 21, 2014 2:36 pm

Give the pictures a instance variable and make it the same for the matching pictures , then when you drag a colored picture over the black , compare the variables .
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Wed May 21, 2014 2:38 pm

Take a look at my example in this previous topic:

viewtopic.php?f=178&t=104294

I hope the example helps and good luck with your project.
B
38
S
12
G
11
Posts: 331
Reputation: 7,712

Post » Wed May 21, 2014 3:28 pm

FragFather wrote:Take a look at my example in this previous topic:

viewtopic.php?f=178&t=104294

I hope the example helps and good luck with your project.

...
thanks a lot,
this is what i'm looking for.
:P
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778


Return to How do I....?

Who is online

Users browsing this forum: mekonbekon, yippiez and 9 guests