iwontnamemyself's Forum Posts

  • rexrainbow - If it's possible, on a 10x10 board, the physical wrap should begin once sprite.x + sprite.width begins to pass through the (0,9) (0,10) boundary and start to appear at the (0,-1) (0,0) boundary. It would appear as if the sprite was in both locations at the same time. Once the origin of the sprite enters the (0,0) location, then the logic position changes from (0,9) to (0,0).

  • rexrainbow - So I'm reluctantly coming to the realization that using a masking system to duplicate the sprites for each row/column is the way to go, but I just haven't been able to get it to work with your Board plugin logic, even with your LogicPin behavior.

    I'm wondering if you know a way to duplicate an entire row or column of a Board object and place the duplicates on each side of the Board location. To look something like this onedrive.live.com/redir where blue is the main Board and pink are duplicate rows of the main Board object.

    I think that may be the only way to produce a wrapping effect for a short distance in either direction.

  • Awesome, Thanks rexrainbow

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rexrainbow - Also the link your pin2imagepoint behavior is throwing a 404 error.

  • rexrainbow - I still can't find it on your plugins page. Is it called something different?

  • Thank you rexrainbow !!!

  • rexrainbow - I keep getting an error when I try to use LogicPin, but I can't find an update for it on your plugins page. Is there anywhere else I can find it?

  • rexrainbow I kind of figured it was forgotten about. I actually looked at Raziel 's profile and he/she hasn't posted anything in over a year, so either they figured it out, or quit working on it all together. lol

  • rexrainbow Thank you so much for all you contributions to C2. They really have made life a lot easier! On that note, I've decided to integreate your Board, SquareTx and LayoutToBoard plugins in a grid-based puzzle game I'm creating and have come to a slight speedbump. I've read through this entire board and spotted a couple posts between you and Raziel that sound exactly like what I need, but there was no answer to his question and doesn't appear to have been an update that rectified his problem.

    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. 11:16:38

    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.rexrainbow2013-04-16 04:07:53

    What I'm looking to do is: On a touch, pick the sprite touched and then according to which direction (vertical or horizontal) a swipe is, move the tiles in that row or column, then once they reach the opposing edge of the board, have them "wrap" back around to the opposite side. I've been working on a masking solution for this, but I'm not sure how it will affect/alter the Board and logic location of the info contained by each sprite that was moved.

    So my question is: Raziel - Were you ever able to figure out a solution to this problem? rexrainbow - Did you ever create a plugin/behavior that accomplishes this task? If not, do you have a clue that will help me figure this out? Thanks again!!!

  • GenkiGenga I actually started working on a masked version just yesterday. lol I'm using a few rexrainbow plugins and behaviors though, so I'm not exactly sure how this will affect/alter the board array. It may turn out that I need to ditch the these add-ons and go for a plain old fashioned 2D array and then manually set the new array coordinates after the sprite has moved.

    Thank you so much for this example though!!! It's not exactly what I'm looking for cuz I need to be able to move each row/column back and forth through the grid, but this is a good start. I've have to tinker around with this example a little bit to figure out how I can use it to may advantage.

    Thanks again GenkiGenga

  • GenkiGenga Mario Bros. is partially what I'm looking for. I have an 8x8 grid full of sprites, which is smaller than the viewport, so, unfortunately, the Wrap behavior doesn't work, which is what Mario Bros. used.

    Right now, I have all the sprites in an entire row/column of the grid moving according to the touch swipe direction. I would like to achieve a "wrap" effect where you can see the sprite on both sides of the grid as it passes through the border of the grid. So the pixels that move off the grid on the right side, appear on the left and vice versa.

    I've tried doing: for each sprite in row swiped -> if sprite.X < grid.X -> sprite.x = sprite.width

    That doesn't work. I mean, technically it does what it says it's doing...it moves the sprite to where the width of the sprite is, but that's not what I want. lol

  • GenkiGenga or harrio were either of you able to fix this problem yet? It's been 2 1/2 years, so I'm hoping you did. I'm looking to do something similar in my game and this is the most relevant topic I was able to find. ...And of course there's no answer. lmao

    In my game, I have an 8x8 grid in the center of the screen, with UI components around the outside of the board, which makes it smaller than the viewport. I need to be able to wrap the sprites in each grid square as they pass through the edges of the board, to appear as a continuous line, but they can't go completely off the screen before wrapping.

    Any help would be appreciated, or if you could post a .capx of how you accomplished this, that would be awesome too.

  • So I've been looking at the liteTween behavior and I don't think it's right for what I need done. Or, I just don't understand it enough yet. lol Thanks so much for all the help!

  • I would love to get these blocks to move without being pinned! I only have the free edition right now, so the fewer lines the better. lol I haven't messed around with lerp yet, but I'll take a look at a couple tutorials cuz it may be super useful.

  • Ok, I got it. I ended up having to make a collision condition between the blocks and the slider and now the pin works.

    Thanks for your help Tylermon and codah