pin to a specific position

Get help using Construct 2

Post » Fri Dec 07, 2012 1:45 am

Hello

I am building a memory game with 4 drop zones in the corners.

I am looking for a way to pin correct answers to the 4 corners the boxes.

I tried pin with rope and it aligns all of them to the right.
-----
Picture car manufactures in the four corners (porsche, lambo, bmw, fiat)

and model names like (911 carrera, contach, 750e..) scrolling across the screen and the user drags and drops the model to the manufacturer. If it is correct I currently show a smiley face, or an explosion if it is match or not.    I would like to see how it would look if i pin the matches to the 4 corner and change the opacity.

any advice greatly appreciated.

Thanks
Tim
B
4
Posts: 16
Reputation: 857

Post » Fri Dec 07, 2012 2:34 am

Something like this?

SnapOnDrop.capx (r111)
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Dec 07, 2012 3:37 am

Thank you for the quick response. I'm running v108 and I get an error opening it that says it was built with 111 and cannot be opened.
B
4
Posts: 16
Reputation: 857

Post » Fri Dec 07, 2012 3:41 am

i downloaded 111 :) checking it out.

Thanks
B
4
Posts: 16
Reputation: 857

Post » Fri Dec 07, 2012 4:03 am

Thank you very much I see how it can be done now.

I used set position x, y instead of set position to another object so that I could offset the image on a corner. This way I have multiple correct matches.

Very much appreciated.

Thanks again

Tim
B
4
Posts: 16
Reputation: 857

Post » Thu Mar 14, 2013 1:02 pm

Hi,
I downloaded Nimtrix' sample file and tweaked it a little bit:

-Added different graphics and more animation frames (from 3 to 6) for both Object and Target.
-Added an action to move object to top of layer, to ensure that the object would land on top of the target.

The objects snap into place when placed on the correct target. However, they for the most part snap into place in the wrong place! That is, they don't stay in place when you drop them but are snapped to a completely different part of the canvas.

Try out this to see what I mean:
https://dl.dropbox.com/u/638423/Construct2/SnapOnDropTest.capx

A is supposed to snap onto 1, B onto 2, C onto 3 etc.

Thanks!Helsekompetanse2013-03-18 07:40:42
B
5
Posts: 7
Reputation: 441

Post » Wed Dec 04, 2013 2:34 am

Nimtrix,

Hi and Wow! ... thank you for sharing this sample and YES, it is VERY HELPFUL indeed as i was also trying to work out a simple game of Drag & Drop ...

Thank You.

B
5
S
1
Posts: 20
Reputation: 545

Post » Wed Dec 04, 2013 9:06 am

Nimtrix,

Hi and thank you again for the sample you had shared and i have replicated using your method and found it to be very efficient.   On my computer it seems to be on AUTO PLAY so i made some adjustments to the version i was recreating.

http://www.leiron.be/exttopics2/snap-On-drop-vins.capx

Thank you very much for sharing, it took me days to find something like this ...

Cheers!

Vins
B
5
S
1
Posts: 20
Reputation: 545


Return to How do I....?

Who is online

Users browsing this forum: MrLOL64 and 20 guests