[Plugin]Board, Layout2Board [Behavior] Grid Move

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

    Grid move behavior could not support CubeTx yet, sorry. (It is better to make another Cube move for cubeTx, but... I'm not sure when I have time.)

    Most of my board applications target on 2D board (squareTx, or hexTx).

  • Try Construct 3

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

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

    Thank you for all these awsome plugins!

    I have two questions because I seem not to understand some basics:

    When I use ?(GridMove): Can move to the relative X offset? is e.g. 1 for ?right? and -1 for ?left?, isn?t it?

    Because I want to check if a chess could move to left or right so I use 1 | -1 as an expression but it seems not to work.

    My second question is how to check whether the chess above or under the picked chess has a given property/is of a given kind.

    Below is a screenshot of a function I use.

    <img src="http://s22.postimg.org/q1itpivkh/exmp.jpg" border="0" />

    I would like to replace the ?GridMove can move to Left? condition with something expressing left or right at once.

    And I would also like to check if the chess\instance under the picked one is type A or B / has local variable X or whatever. So the action is only performed if it is e.g. above a cycle chess and not a square chess.

    I really hope I could paraphrase what I thought :D

  • Raziel

    About Q1, you might use

    (GridMove): Can move to the relative X offset 1
    [ul]
    	[li]or -[/li]
    [/ul](GridMove): Can move to the relative X offset -1

    -> two condition in an OR block

    About Q2, sorry, I'm not sure what you mean, the picture you post is too small. <img src="smileys/smiley3.gif" border="0" align="middle" />

  • rexrainbow

    Thank you for your reply.

    Sorry for the small pic.

    I used your example of a falling chess. It works great.

    So I tried to perform the following:

    A chess can be a block and a cycle. Both are falling. But if a block or a cycle is on a cycle and can go left/right and left-down/right-down it rolls off.

    Just like if something is on top of a stack it falls to the right or left if it is not stable.

  • Hematite12

    Uh, you could download plugins by double click these items, the tool will download plugins , and unzip + copy to your c2 folder.

    Do you see this screen?

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

    BTW, the first link is the basic steps, it should work.

    You might ask your problem on this thread.

    How do I get this tool...I love your plugins and behaviors but tired for dependence...

    I hope there is tool help me to update your plugins and behaviors automatically...:)

  • hoanganh17

    Link is in his signature:

    goo.gl/DOMiv

  • Thank...i got all of rex products

  • Raziel

    Sorry, I could not understand your problem. Let me see -

    • You could check if the chess could fall down.
    • You need to check if the chess could left/right and left-down/right-down

    I thought the architectures of these two purpose are similar, the different is the checking condition.

    Could you paste the checking condition?

  • I also just noticed Pin doesn't work with GridMove. The LX and LY do not update. Maybe you could add this as a feature or make it work in sync with Pin? Maybe I'm missing something though I'm sure there is a way to do it manualy I just don't know how to update or set a LX or LY without Moving it

  • Skillasaurus

    Try to get LX, LY from physical position (x,y) by board expression: PXY2LX , PXY2LY.

  • Yeah, but that kind of defeats the purpose of using the board. If I pin a Chess to another Chess, and the ParentChess GridMoves up, functions like "Can Move Up", "On Hit Target Position", etc, will not work right..hmm

  • Skillasaurus

    Wow~ I got it, I will think about this request. I had never thought it before.

    Could you provide a simple sample capx for more detail?

  • I am no longer at my computer but when I get home I will create a sample real quick.But basicaly, all you have to do to reproduce the problem is this:

    Create board and add 2 Chess Sprites to it.

    Pin Chess1 to Chess2.

    Use GridMove to move Chess2.

    Both Chess will move correctly, but only Chess2 will update its LogicX and LogicY, making Chess1's logic position inaccurate anytime Chess2 moves, also rendering most of its Chess Events/Actions that are based on its LX and LY.

    You can probably figure out a better solution then I could, but I'll just throw these out there just incase, even if they seem like common sense.

    You can adapt the Board to detect a chess that is Pinned and update its LX and LY anytime its ParentUID changes. Or you can also add an action to update the Chess Logic position based on Physical position. Or add "Set LX/LY" actions in addition to "Move to LX/LY"

  • rexrainbow

    I would like to send you a video showing the behavior I try to reproduce within the Board Plug-In but the forum software wants me to collect some reputation first. But I would not like to publish the video here as it shows a prototype of another project.

    Is there a way to reply on a private massage if you send one first?

  • If you still need that CapX let me know. I've been trying to figure out a solution but still no luck and now my project is at a stand still. I don't want to ditch the Board Plugin though it makes everything so easy but my game requires pin

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