[Plugin]Board, Layout2Board [Behavior] Grid Move

1 favourites
From the Asset Store
Snap to visible grid - perfect solution for any game genre
  • Yeah, thats the "z".

    Thanks.:)

  • rexrainbow

    Fixed. It doesn't give errors anymore. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Update:

    Add action:wander into grid_move behavior.

    Demo

    Sample

    Wander range could be assigned in properties table or by actions.

    Also please update board, squareTx, hexTx plugin.

  • Update

    Grid move behavior:

    Add "condition:On colliding begin" to get collided target.

    For example, chess A try to move to left grid, and there is a chess B at it's left side. Then this moving will trigger "On colliding begin with chess B".

    Because that "chess B" might be the same kind sprite with "chess A", I use instance group plugin to save the uid of collided chess B. User could pick instances of collided chess B by instance group object.

    Here is an example -- push box.

    • use arrow key to move character.

    And it's capx

    Also, please update board, squareTx, hexTx plugins.

  • nice new example... looks a bit like Sokoban :)

  • Ubivis

    Thanks, the motivation of adding this feature is to create a "talking" event between two characters (chess).

  • 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

  • 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 !

  • Joskin

    An adventure game demo

    This is a more complete demo with grid move by keyboard and wander for npc.

  • Oh thank you, didn't notice this thread !

  • Joskin

    It need to install many plugins. <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Update:

    [Plugin] Board, SquareTx, HexTx

    Add "expression:Get neighbor UID by UID and direction".

  • 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

    Capx

  • 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 :/

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)