0 Favourites

[Plugin]Board, Layout2Board [Behavior] Grid Move

  • rexrainbow - I haven't been able to figure out how to get a sprite to wrap like in your capx by using touch instead of the keyboard. It seems pretty straight forward though, which is why I don't understand why I'm having an issue. Is grid move or slg movement required for the wrap to work? I don't see the layout to board plugin in you capx either. Do we not need that anymore? What's the purpose of InstGroup? It doesn't look life it's set to anything and what is the Chess.Player Boolean for?

    Layout to board plugin is used to place existed chess or tile into board.

    Or user could create tiles at runtime so that it dose not need layout to board in this case.

    Instance group is used to put the picking result of move able area or moving path.

    Wrap is at the property of board plugin you could set it to no to see the running result of my sample capx files.

  • Update

    rex_board: fix a bug.

    @iwontnamemyself

    Here is a sample capx which finding moving path at wrap board, and moving along this path. (Demo)

    I still need to add something to allow moving at wrap board with custom events, currently it only could move using rex_grid_move behavior.

  • rexrainbow - I'm a little confused. Are the capx and the demo suppose to be the same program? Cuz they're not. The capx link goes to the square board grid move capx, which is the one that was posted before with the player wandering through the edges. The demo however is called board move at wrap board, which looks similar to what I need, but I can't find a capx for in your dropbox anywhere.

    Also, is there a way of using the wrap without using grid_move or slg_movement? I've never used them before, so I'd prefer to use Touch and drag drop, only cuz that's what I'm familiar with.

    [edit] I just reread your last post and I answered my own question about grid_move and slg_movement. lol [/edit]

    [edit]So apparently the demo name is board move at wrap board, but the file name is square board slg movement capx. Found it! lol [/edit]

  • rexrainbow - Upon opening the square board slg movement capx, nothing shows up on screen except a white board with a grey border.

  • iwontnamemyself

    Sorry. The steps of playing are

    1. click black( now it is gray ) chess, it will show move-able area in red tile

    2. click any red tile to move on it.

  • iwontnamemyself

    It depends on you. rex_slg_movement is used to find a moving path in tiles. rex_grid_move is used to move chess logically and physically.

    Or you might choose official tilemap object with official wrap behavior.

  • rexrainbow - I guess I'm gonna have to mess around with gridmove for a little while cuz I haven't been able to get this to work with just Touch.

    Also, any tips or tricks on getting a variable from a single chess on a full board, without using an array?

  • iwontnamemyself

    Pick chess by a condition, then you could get the variable. You could pick chess by logical XYZ, or by tile.

    The wrap only happens when chess move to "wrapped" neighbor in rex_grid_move.

    For example in 10x10 board, (0,0) -> (11,0).

    (1,0) -> (11,0) is not "wrapped" neighbor. It will move right directly.

  • rexrainbow - I think I've got the basics of gridmove finally and how to use it along with Touch. lol I didn't realize you had to use gridmove move to left/right/up/down. I was trying to use gridmove move to x,y when the touch end event occurrs, which is obviously wrong and has caused me to have a major headache the last 2 days. lol

    I've got the blocks to wrap finally though, but they vary in distance from each other when they are repined to one another after the wrap. I have to assume I have the pin action in the wrong spot though, so hopefully that's an easy fix. lol

    Thank you so much for all your help!!! I feel like I put you through the ringer.

  • rexrainbow - I'm looking to make the chess appear as if they are falling when filling in the empties on the board. (ie... when the board is initially filled and after a match is made) I've been looking at your bejeweled capx to modify your "fall" system, but it only works after a match and not when the board is being created. Do you know of a way to setup the board and have it appear is if the chess all falling into their respective positions?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • iwontnamemyself

    The "falling" process is -

    1. scan all chess from left to right, and down to top

    2. try to move down chess if possible.

    Before "falling", you might check if chess has been removed from board, You might add "wait 0" before "falling" to remove chess registered in rex_board automatically.

  • Hi everybody... I have a small problem with the new Edge function that I hope you can help me clarify ... I'm trying to pick & destroy/remove a single edge on my boad and i just can't get it to work...

    The picking seems to work allright.. but if I try to destroy it it either removes all edges incl. graphic from the board or just remove the logical solid from all edges leaving the graphics behind :/

    I'm 99% sure that the problem is just my noobishness .. but in any case is it possible to remove just one edge .. and how do I go about that ?

  • Kali

    Edge object action:Destroy edges

    • Destroy edges and remove them from the board.

    See this sample capx

  • wuhu you'r the champ Rex .. i think i got confused by the picking being done in the "actions" - Any how I get i now. thanks for the help.. and for your great plugins!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[BEHAVIOR] Chipmunk Physics
673 82,516
nelostic's avatar
nelostic
Unread hot topic
0 Favourites
[Behavior] LiteTween
672 169,922
manujorgo's avatar
manujorgo
Unread hot topic
0 Favourites
[Behavior] moveto
415 127,071
andreyin's avatar
andreyin