Loop a Picture

Is there a way to make a picture move, (like the move picture command) but for every row of pixels that disappears off the screen, the same row reappears on the other side? I essentially want to create a looping overlay using a parallel process.

-Thanks
You could use two pictures and place one of them outside the screen, then change their coordinates together using the same parallel process event. When one is completely out of the screen, you set its coordinates so that it appears on the opposite side of the visible one, then continue shifting them together.
Thanks, it works. For anyone wondering exactly how I did it:

I created two variables and set them to the player current X and Y coordinates and set that to a parallel process so the variables would constantly be updated. Then I subtracted 215 from the Y variable, and 270 from the X variable. This is because I'm going to show the picture using these coordinates and if I didn't subtract from the X and Y the Upper left corner would display over the player rather than the center.

Afterwards, I repeated that process creating two more variables, except this time, I subtracted 215 from the Y variable, and 810 from the X variable. These variables are for the location of the second picture, which I want to appear just off-screen.

Then I created another event also set to parallel process, I used the Show picture command, left the origin at Upper Left, and set the X and Y to the variables I established before. Then I used the move picture command and set the X to 544 (the width of the screen) that way the picture would move completely off the screen. Make sure to remove the wait command.

I also ended up changing the Y to 5, because I noticed that the move picture command would move up slightly every hundred pixels or so, and then when the event came back to the beginning to display the picture in the original position it wouldn't be the same as where the last picture was, creating a sharp stepping motion. Changing the Y to 5 seemed to counter the slight upwards movement perfectly.

(Note that Y in RPG maker is down, and -Y is up for some reason.)

After the move picture command, I used another show picture command of the same image, (make sure to use a different picture number) Again I set the location to variable, but this time I assigned it to the second set of variables I created. Lastly, I used another move picture command, (make sure the number is set to that of the second picture) and set the X to 0 and the Y to 5. On this command I made sure to keep the Wait command checked. That way the second picture is completely on the screen before the event loops and the first picture swaps itself out with the one currently on screen.

tut1.PNG tut.PNG
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/loop-a-picture.112412/