iwontnamemyself's Recent Forum Activity

  • Tylermon When I do that, it pins all the sprites on the entire grid. I need it to only pick one row or column, which is why I was trying the for each loop.

    codah That doesn't work when there are multiple rows on the grid though. It'll pin everything on one specified row when before runtime, but that's not what I'm looking for. I need it to work on a multi-row grid when the user swipes a row or column.

    Here's my full .capx so you can see what I'm talking about. In this version, it enabled dragdrop and took out the for each loop to try some other ways, but I haven't been able get it yet.

  • Yeah, I've been using a lot of rexrainbow 's plugins and behaviors. They are extremely useful!!!

    Basically, the .capx contains a 1 x 8 grid with a sprite in each grid square, eventually it will be 8x8. There is a long rectangular sprite that appears on top of the row once the screen is touched, which will eventually be clear, but for testing purposes I want to be able to see it. With this "slider" sprite, I want to move the entire row of sprites from side to side using touch controls. Then once I get this part working, I need to figure out how to get the sprites to wrap at the edges of the board, at the pixel level, so you can see the sprites at the edges on both sides of the grid when they crossover.

    At one point I was using multiple layers, but I found that if I just set the solid behavior of all the sprites to disabled, I don't need to use multiple layers.

    With that said, I tried using drag and drop before. I guess I just don't know it well enough to get it work. But, by the looks of the conditions and actions it provides, the functionality I need just isn't there. Right now, I am using a for each loop to pin all the sprites to the slider sprite, but it's just not working. I'll goof around with drag and drop some more though and look up the tutorials again.

    I haven't tried using parallax yet. I don't know how I would get it to work along with the wrap, since I'm not wrapping at the edge of the layout. Is it possible to view multiple layouts at the same time? That would make things a whole lot easier cuz then I could just set the board layout to the size of the board and have the UI stuff on the sides on another layout beneath the board. lol

  • If I removed the "Slider" sprite, would things be easier? Would I be able to move the entire row at the same time?

  • NP Tylermon Sorry about not explaining it well. I'm not really sure how else to explain it. I have a feeling I'm making things a little harder than they actually are for myself. lol

    [edit]switched the .capx[/edit]

  • I have a grid full of sprites (I'm using Board, LayoutToBoard and SquareTx) and I need to move an entire row of sprites in a single touch swipe. I have a translucent place holder sprite on the layer above these sprites that covers the entire row and when I pin it to the sprites below and try to move it, some of the sprites end up off track and overlapping, while others just disappear.

    What I have right now is:

    For each Sprite1

    --Sprite2 Is overlapping Sprite1 -- Pin Sprite1 to Sprite2

    I've tried all of the Pin to mode options and it's the same outcome each time (excluding the angle only option). I've tried making the sprites a little smaller, so they don't collide when moving. I've tried moving all pinned objects forward one level. All to no avail. (Besides the fact they only let us have 4 layers in the free version)

    Am I going about this the wrong way? Is there an easier way than having a marker sprite? HEYLP! lol

  • Thank you so much you guys!!! I was able to setup a visual debugging system with that tutorial, which is super helpful. LittleStain I ended up using Touch.AngleAt(Touch.TouchIndex) to get the angle and it works perfectly!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here's what I need to accomplish:

    I need to drag a sprite along the x or y axis according to the direction the user swipes, but once the sprite starts to move, it can only move on a single axis until the next touch. So no matter the direction of the swipe, whether it's diagonally or on the other axis, only the original axis registers until the user ends the touch and touches again.

    I can get the sprite to follow the touch, but I need them to move either horizontally or vertically. I'm pretty sure I need to acquire the direction of the swipe before anything else, but I'm completely stumped on how to do that.

iwontnamemyself's avatar

iwontnamemyself

Member since 10 Nov, 2013

None one is following iwontnamemyself yet!

Connect with iwontnamemyself

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies