How do I Make this puzzle game mechanism more simple

Get help using Construct 2

Post » Tue Nov 17, 2015 12:37 pm

https://dl.dropboxusercontent.com/u/30159850/system.rar

here is what i did
idea is next:
make exactly same move of sprites like in this mini game on windows 7

so i did mechanism for that, but, its to complicated but it works perfect
Image


its there any simpler solution?
B
6
S
3
Posts: 15
Reputation: 610

Post » Tue Nov 17, 2015 9:28 pm

ajvar23 wrote:its there any simpler solution?


Ok..I accepted the challenge.. :D

If I understand correctly..movement should look like:
(player click on sprite..and sprite move to "empty space")

Image

I spent almost 15 events for movement...(yes...I know it can be simpler :) )
I hope to complete the entire mini-game(sort the frames from 0-14) in less than 30 events...

But ...
at this moment I'm obviously too stupid to solve the problem :D
my best result..after a half hour of trying!!! :?
Image

so..when I manage to confirm that the game works properly...I will upload capx... :D
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Tue Nov 17, 2015 9:58 pm

That was actually one of my first games to try:

https://dl.dropboxusercontent.com/u/485 ... index.html

Wonder if I still have the capx..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Nov 17, 2015 10:04 pm

@korbaach How are you generating the board? It can not just be random as it has been proven that 1/2 the configurations are unsolvable.
ImageImageImage
B
71
S
21
G
232
Posts: 3,695
Reputation: 129,866

Post » Tue Nov 17, 2015 10:15 pm

blackhornet wrote:It can not just be random as it has been proven that 1/2 the configurations are unsolvable.

@blackhornet Thanks man!....yes..I generating random frames...
..do you have some advice, how to do it properly?

..I know I can write frames in array...but surely, not every possible combination...
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Tue Nov 17, 2015 10:35 pm

It's not simple. https://en.wikipedia.org/wiki/15_puzzle

The easiest way is to start in the correct positions, and then randomly simulate the moves to shift them around. As long as the moves are valid, then they can be undone.
ImageImageImage
B
71
S
21
G
232
Posts: 3,695
Reputation: 129,866

Post » Tue Nov 17, 2015 10:37 pm

I did a game like that a while back here:
https://dl.dropboxusercontent.com/u/542 ... 9tile.capx
It could be simpler but i was going for a dragging mechanic.

@korbaach
I solved that by starting with it solved and then having it do 100 random moves or so.

@ajvar23
You can greatly simplify your capx in a few ways:
* use different animation frames instead of different sprite types.
* only position detectors around the sprite you tap.
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Tue Nov 17, 2015 11:05 pm

Thank you.. @blackhornet & @R0J0hound !
Now... when you say solution..I see that it is only logical solution...
yes.. ..I also see Harvey

Image
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Wed Nov 18, 2015 4:30 am

Where is the 217 update ??
B
18
S
2
Posts: 48
Reputation: 896

Post » Wed Nov 18, 2015 6:01 am

The link is at the bottom of this page.
ImageImageImage
B
71
S
21
G
232
Posts: 3,695
Reputation: 129,866

Next

Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, senecaa and 16 guests