@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