Place the picture in order Game

Get help using Construct 2

Post » Wed Nov 06, 2013 9:15 am

@NECROKRIEG

Thinking about the process I went through - you may also want to consider how the objects detect the overlap.

I went through hell because the empty slots were close together, and it would sometimes snap to the wrong slot if it was overlapping two slots. I got round this by changing the hot spot are (bottom icon on left in picture editor) so that the hotspot is just a vertical sliver down the centre of the sprite. Took a bit of trial and error but works just fine.

Might save you a couple of days head-banging further down the line
B
8
S
2
G
1
Posts: 45
Reputation: 1,007

Post » Thu Nov 07, 2013 11:40 am

@sainsy Thanks that does help to a certain extent! I think Iv understood the 'bug'. Once you put a card into a slot and then take it back out, the slot still thinks it's full. So i have to add another action to say:

'Once the Card is removed from the slot switch the slot back to Empty'
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Fri Nov 08, 2013 7:02 pm

Hi chaps!
I just thought I'll post the 2 prototype Card Games Iv been working on.

New Features for both games Include:
- Angry Bird styled win menus that slide in when you win.
- Cards match to specific targets without arrays.

Drag & Drop Card Game capx
- Drag & drop the cards into the correct slots.

Order & Match Card Game capx
- Incorporates a sliding motion to order the cards in place.

My Aim
I was trying to achieve the right 'touch & feel' for a card game on a touch screen device. I wanted to make a simpler version of @sainsy 's game without arrays.

'Bugs'
I couldn't figure out how to re-snap a card after the initial snap on the Drag & Drop game, it's a stupidly simple thing I can't yet resolve.

Thanks @all for the help! :)NECROKRIEG2013-11-08 19:04:31
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Sun Nov 10, 2013 8:44 am

@NECROKRIEG

Looking very nice

OK - fixed the snapping problem

https://www.dropbox.com/s/v2x575nbvc4dnol/DragDropCards-MenuAnimated%20snap%20fixed.capx

Set original position at setup
If condition is card already in place, return to original position
If card not touching anything return to original position
B
8
S
2
G
1
Posts: 45
Reputation: 1,007

Post » Sun Nov 10, 2013 2:13 pm

@sainsy Thank you so much! I achieved what I wanted thanks to you!

Re-Snap Capx

Instead of snapping permanently to the slot the cards can snap on and off. They can also be grabbed freely when they are in the white area.

x
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Sun Nov 10, 2013 7:24 pm

My pleasure - thanks also to the other two guys in this thread - I couldn't have helped you without the help they gave me

Happy families!!!

:-)
B
8
S
2
G
1
Posts: 45
Reputation: 1,007

Post » Fri Nov 15, 2013 12:57 pm

:D thanks all!
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Previous

Return to How do I....?

Who is online

Users browsing this forum: Kin and 38 guests