Creating puzzle

Get help using Construct 2

Post » Thu Jul 11, 2013 1:53 am

Hello fellow

I've gone into a bit of this in Construct 2, I'm making a puzzle game but I found a problem, do not like him that when clicking on a piece be exchanged for the place of the other, I have tried to Set Position to another object but I have not been able to achieve the goal, and haiga hopefully people who understand Spanish and can help me, Thanks.

Here's an example of what I want to do:

http://www.juegodepuzzle.net/de-todo/varios-motivos-de-rompecabezas.php



thanks
B
3
Posts: 2
Reputation: 179

Post » Fri Jul 12, 2013 6:28 pm

Welcome to the forums, the members here are glad to help you, but it's better if you provide a project file to analize what the problem is.

Bienvenido al foro, los miembros aqu te ayudarn gustosamente, pero es mejor si provees el archivo del proyecto para analizar cul es el problema.

Si necesitas ayuda en espaol puedes mandarme un mensaje personal.
B
17
S
4
G
5
Posts: 12
Reputation: 3,157

Post » Fri Jul 12, 2013 8:50 pm

I looked at a friends bejeweled clone and it looks like he used Drag and Drop to allow the player to move the piece. On drag start it Z-Layered to the top. When the tile got 60 pixels Distance() from the temporarily saved source location he forced it to drop. It then would snap to the closest tile grid, and moved an invisible sprite to that location. Then he picked each stacked sprite instance under that invisible sprite, and further picked the bottom (z-layer) one to move to that original temporarily saved source location.

Yes I did ask him to clarify some things so I could post it. but he doesn't want to share code. sorry.

[edit- the 60 pixels was far enough to land on a tile next to the original, but not far enough to snap to a diagonal.]JudyScott2013-07-12 20:54:59
B
36
S
11
G
10
Posts: 13
Reputation: 8,684

Post » Fri Oct 25, 2013 10:32 pm

it would have been nice to see further clarifications, as i want too to get a puzzle game made
B
24
S
4
G
2
Posts: 45
Reputation: 2,403


Return to How do I....?

Who is online

Users browsing this forum: COcatdog, ColombageEnPLS and 13 guests