[Plugin]Board, Layout2Board [Behavior] Grid Move

1 favourites
From the Asset Store
Snap to visible grid - perfect solution for any game genre
  • Hey, rexrainbow. I think I found a bug in the Board plugin:

    This bug occurs only if you use Families:

    Board > Physical:Create Tile (from Family)

    - tile is created

    - bug: not possible to pick the tile (or do some action on the tile within the same event)

    But it works just OK with single sprites.

  • Update:

    [Plugin] Board

    • fix bug at "CreateChess" on SOL setting.

    xoros

    Thanks, I had fixed it. Redownload board plugin again.

  • Cool, thanks!

  • Plugin: Layout to Board

    This plugin could help designer put tile/chess instances from layout editor to board object directly. (So that designer does not need to use other tile map editor.)

    Sample capx

    Tiles/chess are put in layout editor by using grid mode. Using "action:put chess on board" to put instances into board object. Remember to put tile (z=0) first.

    (The chess with grid move behavior is just a testing to show the chess could move on tiles.)

    To use this plugin, user should update SquareTx plugin, HexTx plugin.

  • The .capx sample file not work I can't load with C2

    thanks by all your work

  • felixsg

    Sorry, I put wrong link, this is correct one - sample capx

  • Update:

    [Behavior] Grid move -

    Add "condition: On get destination's solid", "action: Set destination's solid", to assign "logic" solid property from event.

    So that user could decide the chess could move to the tile or not more easily at event sheet.

    Sample capx

    This feature is an option, user could still use official solid behavior to block the moving.

  • Hey rexrainbow,

    I'm using your board plugin's pack a lot - real time saver.

    Will it be diffcult to implement the following features?

    1)Set board height and width (number of elements on the X/Y axes) in run-time (like in event editor). Similar method as in Array Object (Array.setSize)

    2)Get board height & width

  • xoros

    1. "Action:Reset board" could assign board height and width ,and reset the board to empty.

    2. "Expression: BoardWidth, BoardHeight" could get board height & width (you need to download the new version of board plugin again)

  • Update:

    [Plugin] Layout2Board

    • add an alert message when setting wrong grid width & height, wrong grid width & height will cause non-integer logic index.
  • Thanx man,

    Great, now I can get width and height.

    I already noticed "ResetBoard" method, but the problem is, that after setting new dimensions, entire board information is lost. Of course it is possible to "refill" the board with instances from layout again using Physical Coordinates to Logical Coordinates (or your layout to board plugin), but I assume that under some circumstances it can cause glitches, e.g. if instance is being animated or something like that.

    Another solution could be saving the board information somewhere and than load it after setting new dimensions.

  • Try Construct 3

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

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

    Okey, I will make an action to assign width and height without clean all chess.

  • Many thanks, man.

  • First of all thank you for this great plugins and behavior.

    I created 2 chess objects one for player, and one as a npc.(chess,chess2)

    I used board and squareTX. Board is bigger then window size.

    Player directs chess object with arrow keys. When there isn't chess2 object. Camera automove with chess object. ( I don't know where autocamera came from. Maybe It's part of board plugin)

    If I create chess2 as npc. And give it wander. If chess(player) moves 1 square global turn is turn++. And if global npc value is lesser then global turn. Wander. (I just trid to create turn based movement system as I can)

    But then camera wants to move also with chess2 object as it wander. So If both objects gets far away from each other, camera centers them and looses both objects. I just want camera to follow chess object. :) Where do I do wrong or what do I have to do. Thank you very much.

    oh by the way. Is there a way with your plugins to easily "if player is 3 squares near to npc object then pick that npc object and do smth with it (make chase player).

    I bet even if I can do it with your plugin I can't count if npc see player then follow it. If there is solid object between them, then you can't see player, so don't try to follow him :D

  • Spider_hip

    The camera is controlled by scroll-to behavior, not in board plugin.

    I will think about add a distance checking condition/expression, try to add a "line of sight" plugin, thank you for this suggestion.

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