[Plugin]Board, Layout2Board [Behavior] Grid Move

Post your completed addons to share with the community

Post » Mon Jul 23, 2012 10:53 am

@Ubivis

Thanks, the motivation of adding this feature is to create a "talking" event between two characters (chess). rexrainbow2012-07-23 10:58:04
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sun Aug 05, 2012 1:29 am

Update:

Add expression:PXY2LX, PXY2LY in Board plugin, These could get logic X or logic Y from physical x and physical y. For example, get logic X and logic Y from current cursor position. Return (-1) if position is not in the board.

Also please update SquareTx and HexTx plugins
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Thu Aug 09, 2012 10:10 am

Thanks a lot, this is awesome. Working perfectly !

I'm looking for the grid movement used in your Wander example , how did u do that ?

I mean how did u do the "On key Up down, move up" and not hit the key Up for moving one tile by one tile ... ?

Maybe be, it would be better to give the same capx used for the example ?
Thanks again !Joskin2012-08-09 13:00:42
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Thu Aug 09, 2012 2:31 pm

@Joskin

An adventure game demo
This is a more complete demo with grid move by keyboard and wander for npc.rexrainbow2012-08-09 14:32:02
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Thu Aug 09, 2012 2:44 pm

Oh thank you, didn't notice this thread !
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Thu Aug 09, 2012 3:12 pm

@Joskin

It need to install many plugins.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Tue Sep 18, 2012 12:47 am

Update:

[Plugin] Board, SquareTx, HexTx
Add "expression:Get neighbor UID by UID and direction".
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Wed Sep 19, 2012 5:29 am

Update:

[Plugin] Board
- Add "condition:Are neighbor" to check if two chess are neighbor.

Here is a demo for swapping two neighbor chess.
- click two chess brick

Capxrexrainbow2012-09-19 05:40:41
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Tue Oct 23, 2012 8:55 pm

Hi again.

I'm having some problems when the NPCs are wandering, they happen to step on the tiles that are supossed to have rigid behavior (I know the tiles work fine beacause my player collides with them) and on you Adventre capx example, I can't find anything else about this :/
B
4
S
1
Posts: 22
Reputation: 671

Post » Wed Oct 24, 2012 1:33 am

@Ga2Z

The collision and moving are handled by grid move behavior in this case.
User could put solid behavior at tiles or chess, the grid move behavior will check them automatically.
Or you need to check collision by yourself, you could get the UID of target tile by "board expression:LXYZ2UID". Then get tile instance with this UID.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests