[Plugin]Board, Layout2Board [Behavior] Grid Move

From the Asset Store
Snap to visible grid - perfect solution for any game genre
  • Thank you. I'll just try something like that.

  • KLRG

    Here is an example of using slg_movement plugin to control green chess approach to black chess.

  • Update

    [Behavior] Grid move: add "Action:Approach/Depart"

    This action will let the chess move to neighbor to approach to target by shortest physical distance, or depart fro, target by longest physical distance.

    It's another way to do approaching. (One way is using path finding.

    But, the chess will be stuck in some cases like

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

    The green chess will stay at that cell which has (local) shortest physical distance to target (black chess).

    The path finding is smarter then "action:approach".

  • Amazing!! It's very helpful.

  • Hi rexrainbow. First of all thank you for your plugins and behaviors, they are awesome.

    But i have a problem with the CustomMove behavior. It simply doesn't work for me. I've made a board, bounded it to a SquareTx object, created the tiles and one chess. Then i've assigned a CustomMove behavior to the chess. I've added a keyboard object too and added a GridMove action to an On key pressed event. But it doesn't work, the chess doesn't move. I've checked some of your samples but i can't find a solution. So it'd be great if you could help me.

    Here is my capx. docs.google.com/file/d/0B6gdXck1k_sHSlJKNE9mQTZXUU0

    Thank you.

  • Hi rexrainbow. First of all thank you for your plugins and behaviors, they are awesome.

    But i have a problem with the CustomMove behavior. It simply doesn't work for me. I've made a board, bounded it to a SquareTx object, created the tiles and one chess. Then i've assigned a CustomMove behavior to the chess. I've added a keyboard object too and added a GridMove action to an On key pressed event. But it doesn't work, the chess doesn't move. I've checked some of your samples but i can't find a solution. So it'd be great if you could help me.

    Here is my capx. docs.google.com/file/d/0B6gdXck1k_sHSlJKNE9mQTZXUU0

    Thank you.

    I answer to myself to tell that i've found de solution. I was creating the tilemap and the chess outside the on start of layout event. Visually was working, but logically it wasn't.

    Thanks anyway, it think this plugin will be very usefull for me.

    Cheers :)

  • Hi. I think i've found a bug in the GridMove behavior.

    I've created a board and added two instances of a chess in it. Then i've assigned a GridMove's move to to the chess for the four directions (up, down, left, right). I want it to move them together at the same time and it works perfectly with all directions but not for the right direction (if you press right, first moves the right instance of the chess and then the other)

    Here's a capx wich explains this better.

    docs.google.com/file/d/0B6gdXck1k_sHN3oySnhtVlM2T00/edit

  • pcp

    It's because that the left chess of these two chess will try to move to right first, and it found that there is a chess at it's right side. So that the left chess could not move to right.

    A possible solution is assign different z index for both chess.

  • pcp

    It's because that the left chess of these two chess will try to move to right first, and it found that there is a chess at it's right side. So that the left chess could not move to right.

    A possible solution is assign different z index for both chess.

    Thank you so much! It works!

  • Hey guys, has anyone managed to resize tiles from 32 by 32 to something?

  • Oh wait got it. Thanks.

  • rexrainbow

    Hi,

    I don't know if I'm the only one facing this error. I updated to the last stable version of C2 (r139) and I have this two errors with the grid_move plugin. Could you help me with this please?

    <img src="https://dl.dropboxusercontent.com/u/22785599/Construct2/images/Problem-grid-move.PNG" border="0" />

    <img src="https://dl.dropboxusercontent.com/u/22785599/Construct2/images/Problem-grid-move-2.PNG" border="0" />

  • anthonykojima

    Put them into "behaviors" folder. (not "plugins" folder)

  • rexrainbow,

    Thanks a lot dude. I'm really stupid on that one I didn't read anything and I just tried to install it. My bad. Sorry for the mistake. Everything is ok now.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • p1ay.allalla.com/C2TestCapx/layout2board.capx

    is broken for me

    EDIT:

    found in sky drive thanks

    skydrive.live.com

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