[Plugin]Board, Layout2Board [Behavior] Grid Move

From the Asset Store
Snap to visible grid - perfect solution for any game genre
  • MelonGuns

    Update C2 to r124 or later version.

  • rexrainbow

    THX!!!! <img src="smileys/smiley32.gif" border="0" align="middle" /> <img src="smileys/smiley32.gif" border="0" align="middle" /> <img src="smileys/smiley32.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
  • rexrainbow

    Is there a way of "wrapping" the borad so it starts again when a border is scrolled to or reached?

  • Raziel

    I'm not sure what's you want. The position of board could be set at squareTx or hexTx plugin.

  • rexrainbow

    There is a "wrap" behavior for objects. If applied they reappear on the other side when leaving the layout.

    I want a similar effect for the board itself. You can see on the screenshot that I reached the border of the board. There is white space.

    I wanted the board to be placed there instead of the white space.

    So that one cannot see the borders of the board as it is placed seamlessly.

    e.g. my board is 10x10 tiles. When I reach tile 0,9 and go another step to the right I am on tile 0,0 again and also do not see white space but tiles instead.

    I know how to place the chess there again, when reaching end of the board. But I would like to have a non visible end of the board.

    As I use unbound scrolling there is a white space instead.

    So what I ask for is kind of an infinite board feature where you can keep going in one direction without seeing the end of layout.

    Hope it makes more sense now.


  • Raziel

    Okey~ I will try to make another behavior "board wrap" for this purpose, when I had updated my all plugins to support save/load system.

  • Update

    Plugin: Board

    Plugin: SquareTx

    Plugin: HexTx

    Behavior: Grid move

    Behavior: Chess

    Plugin: Layout2Board

    Support save/load system.

  • Save/load board

    • drag black chess or press arrow key to move, black chess could move cross gray tile
    • click gray tile could toggle it to red tile.


  • Update

    [Behavior] Grid move - fix something at save/load system.

  • Update

    [Plugin] Board, [Behavior] Grid move

    Fix possible minify issue when saving/loading.

  • Update

    [Plugin] hexTx, [Behavior] Grid move

    Add "Axis" at properties table in hexTx plugin. It has "Left-Right" mode and "Up-Down" mode. The "Axis" mode at previous version is "Left-Right".

    Left-Right mode

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/left-right_zps61af3151.png" border="0" />

    Up-Down mode

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/top-down_zps86914735.png" border="0" />

    And grid move has a new action to move at Up-Down hex board. The direction at Up-Down hex board is -

    0: down-right

    1: down

    2: down-left

    3: up-left

    4: up

    5: up-right

  • Rex, I have to say all of the plugins and behaviors you have done are awesome and I thank you!

    I tried to look through most of the posts on this thread but thought it might be easier to just post my question. I created a simple 18x18 board but wasn't too sure how to set it up where the "chess" piece moves along the intersections instead of the middle of each tile? I changed the origin point to 0,0 for the chess piece and it moves along the intersections but i feel like that isn't the best way especially once i have to do scripting on where exactly the piece is?

    Or on that matter drag and dropping onto the board to snap to the intersection?

  • Uh, I don't know how to get "intersections" since it is defined by sprite boundary or image.

    You might change the image of tile, put (or offset) the intersection at the center of this image.

  • If you could mark the intersection by image point. Then you could use moveTo behavior to move chess manually.

  • Thanks Rex, yea I will try the image point suggestion and if that doesn't work the way I want I can definitely just change the sprite to have the intersections in the middle and go from there. Thanks!

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