[Plugin]Board, Layout2Board [Behavior] Grid Move

Post your completed addons to share with the community

Post » Thu Jan 17, 2013 12:35 am

@Spider_hip

I'm not sure. I need to find an algorithm to do that. It is better to make another plugin to create a random array like that.
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Sat Jan 19, 2013 2:22 pm

Release chess bank plugin to help designer save/load board(chess) more easily.
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Sun Jan 20, 2013 11:34 am

I'm completely confused.

I just tried to make my Procedural tile map generation. there is a tile object with 3 frames.

for x from 0 to 10
for y from 0 to 10

create tile to loopindex(x), loopindex(y)
stop animation
tile.frame = random(3)
set animation frame to tile.frame

It creates random framed map.

Now I want to make

(Neither I can't get chess.chess.UID's sub properties nor loopindex(x)-1. sub properties)
compare loopindex(x)-1.tile.frame not equal loopindex(x).tile frame then
global.randomize50 = random(1)
if global.randomize50 = 1 then
loopindex(x).set animation frame = loopindex(x)-1.tile.frame

Which I try to do is if a tile is frame 1 then %50 chanse for tile which is on right is also frame 1.

Maybe I don't have enough english to explain my self. Sorry about that.

I just tried to make smth like perlin. Like stones pile up somewhere, irons pile up somewhere else (with high probability)
----------------------------------
I know I really have to learn math. I unfortunately suck at math.

my second problem is, Is there anyway to do smth like
if there is tile.frame = 2 then
for 5 squares range there is not another tile.frame = 2

maybe this is not the place to ask these questions. I wish if there was a way to get object's property's with for example
Chess.Chess.DIR2UID(2,0).private variable
But I can't access to exact tiles while on for condition.

Sorry to disturb.
Thanks for any advice

Spider_hip2013-01-20 11:37:43
B
7
S
1
G
1
Posts: 76
Reputation: 904

Post » Mon Jan 21, 2013 12:13 am

Update

[Plugin] board
- Fix bug when picking instance after creating chess.
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Tue Jan 22, 2013 4:04 am

Hi Rex, are some of the files corrupt? They don't appear as openable files e.g. rex_board, rex_board_hexTx, rex_chess, etc...

They show up as just 'file' rather than 7z like your other plugins

When I try and open them anyway with WinRar and unload them to the plugins folder, an error pops up: "Unable to load plugin in c:construct2\exporters\html5\plugins\rex_chess':found 'GetPluginSettings' global, but it is not a function

This plugin will not be available in the editor
B
34
S
8
G
3
Posts: 328
Reputation: 7,692

Post » Tue Jan 22, 2013 4:51 am

@EyeHawk

rex_chess is a behavior, put at c:construct2\exporters\html5\behavior folder.
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Tue Jan 22, 2013 4:58 am

Hi all,
I would like to add more SOL methods to help designer pick chess more easily, any suggestion?
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Tue Jan 22, 2013 9:50 pm

Thanks Rex, I mixed up some of the behaviors when copying to the plugin/behavior directories - all is working now
B
34
S
8
G
3
Posts: 328
Reputation: 7,692

Post » Thu Jan 24, 2013 3:25 pm

Update

[Plugin] Board
- add "condition:Pick chess at Logic X,Y,Z"
- "condition:Pick chess above tile UID", now the parameter of tile's UID could be number, or a JSON string for a list of tiles. It is useful to get chess from instance group.
For example

The tiles with matched symbol will be saved into instance group "match 3".
Use expression: GroupToString("match 3") to get tile's UID in JSON string. Then put this string in parameter of tile's UID.
[code]+ Pick chess above tile UID: InstGroup.GroupToString("match 3")[/code]
rexrainbow2013-01-24 15:26:20
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

Post » Sat Jan 26, 2013 11:57 pm

Update

[Plugin] Board
- Fix bug on "action:Swap"

[Behavior] Grid move
- Add "action:Swap", to swap with other chess which has grid move behavior.
B
97
S
22
G
179
Posts: 4,124
Reputation: 104,555

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: kabkglomr and 0 guests