Bejeweled (Plugins demo)

Show us your completed creations made in Construct 2

Post » Sun Dec 07, 2014 7:38 am

@rexrainbow

Works perfectly with local variables instead of frames matching :) Thanks again so much!!!

In order to go even further, how can I do to destroy a line and/or a specific color of chess?

Because I would like to asign a key when pressed the bottom line is destroyed (no matter the type/colors of the chess) and another key when pressed all the chess of the same type/color in the board are destroyed.
Problem is I don't know how to create new chess (by triggering the "fall" state) and how to select a all line to be destroyed.

Also, sometime the board freeze and I can't swap the chess anymore? Is that normal or is that just with my game?

Thanks again 8-)
B
6
Posts: 28
Reputation: 377

Post » Wed Dec 10, 2014 2:27 pm

You know UML? Nice :D
ImageImageImageImageImage
B
49
S
14
G
5
Posts: 852
Reputation: 11,001

Post » Wed Dec 17, 2014 8:57 am

@PixelImpact

I am not sure why it had frozen. I did not have this situation before. Maybe I miss something.
To destroy the same color, or destroy a line, You might try to pick all chess, then check the color or the logic position. The logic position of each chess could be got by expression:UID2LX, expression:UID2LY of rex_board object.
logical position (x, y) = ( Board.UID2LX(chess.UID) , Board.UID2LY(chess.UID) )
Or, using Condition:Pick chess at LX , Condition:Pick chess at LY of rex_board object. The document of rex_board is at here.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Thu Dec 18, 2014 8:28 am

@rexrainbow

Thanks! Very clear and that helped me a lot as alway :)

Now my problem is I don't know how to activate the fall of all the chess to fill in the empty places of the board. So how to make the chess fall (wihtout any match3)?

About the freezes, it started (occasionally) when I change the number of columns/lines. Maybe it is because of that?

Thanks again ;)
Last edited by PixelImpact on Sat Dec 20, 2014 3:06 am, edited 1 time in total.
B
6
Posts: 28
Reputation: 377

Post » Fri Dec 19, 2014 4:15 pm

@PixelImpact

You might need to change the state machine. The main fsm is at "FSM-main" event sheet. The states changed would be dumped at console.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Sat Dec 20, 2014 3:05 am

@rexrainbow Ok found it! It works well thanks :)

What about the freeze? Is that just my game then?
Also sometime, even if if I swap 3 chess, it doesn't match and the chess go back to it original position. It looks like the game have determined which items shoudl match and you can't match any other ones...

Here is a last version my prototype: http://pixelimpact.org/water-game/index.html
B
6
Posts: 28
Reputation: 377

Post » Sun Dec 21, 2014 2:24 am

you can do everything on a single sheet of Eventon in their respective order
B
8
S
2
Posts: 2
Reputation: 514

Post » Sun Dec 21, 2014 3:21 pm

@PixelImpact

This demo only could swap 2 neighbor chess, you might need to change the state machine for your requirement.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Mon Jan 05, 2015 7:10 pm

Sorry but where is the download link please?
ImageImageImageImageImage
B
49
S
14
G
5
Posts: 852
Reputation: 11,001

Post » Tue Jan 06, 2015 2:26 am

@Naji

See them at first post of this thread.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

PreviousNext

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 5 guests