How to make a picture loop on the map?

Well, I'm using a very old and simple code for showing my pictures with [FIXED] tag. But whenever I reach the loop point on my map (X and Y directions) the picture I'm using for adding clouds is disappearing. How can I make the picture fully connected with X and Y directions?

The issue with graphics:

vrq342.png

When I go one square up the clouds disappears.
205um3a.jpg


class Sprite_Picture < Sprite

def update
update_bitmap
update_origin
if @picture.name.include?("[FIXED]")
self.x = 0 - $game_map.display_x * 32
self.y = 0 - $game_map.display_y * 32
else
update_position
end
update_zoom
update_other
end
end
And this is the code I'm using. (I believe so.)
The Content of the Picture itself needs to Loop, like in the Picture below.
Try the following Picture in a standard 17x13Map and let us know if it works.
Because iam not sure if it does in your case.

Test_Loop_Picture.png

Edit: Sorryx i believe i missread, you are not using statig Pictures, s
Yup, my picture itself is looping just like your example picture. The issue is when I'm on the edge of my map the picture I'm using disappears or cuts half. Tried it with your picture, still the same issue.

adkq9v.png
My Picture looks realy wrong in your example picture.... 🙂

Just to make sure its no starter mistake:
Which size does your picture have and how big is your map exactly?
And did you test my Picture in a 17x13Map? Else it would not work.

Edit:
I just remembered another starter mistake, which option did you choose: the picture centered or left cornered? choose left top corner and x and y = 0
It's 60x60 Map and I did it with your picture and I posted the results on the top. My maps are always been left cornered and x/y = 0.
Did i read correct, you tested my Picture in a 17x13 Map?
Because your Map boarders and the Picture show an alignment which indicates wrong map size or wrong display position, even if the loop is not working, the alignment looks wrong. Thats why i asked again about the Map size.

Edit: How big is the Picture u use for your 40x40 Map? You missed to give that answer to us.
No, I can't test it with 17x13 due my game's default screen size is 21x 15. So I rescaled your image to 640x480 for fitting up my game screen. My [FIXED]Cloud image is 1920x1920, and the world map is 60x60. 40x40 would be 1280x1280.
640x480 isnt correct for 21x15, it would be 672x480. (Or you misstiped and ment 20x15?)
But your other numbers are correct.
Maybe its realy a Bug, or can you upload a Demo Project which showcases this error?
640x480 isnt correct for 21x15, it would be 672x480. (Or you misstiped and ment 20x15?)
But your other numbers are correct.
Maybe its realy a Bug, or can you upload a Demo Project which showcases this error?
Yeah, I miss calculated that lol
I can't really upload it as a demo project since it's a full game, I was making my 3rd world map and wanted to add looping map with a cloud picture, but I guess I had to salvage this idea. I'll probably just do non-loop standard world map. Thank for your help though ^.^
Usually when it comes like this, you can use fog script. Since you know, fog usually looped
Default show picture (and Sprite_Picture) is not loop, but you can have a script solution if you don't mind
Iam absolutly Sorry OP, i just tested it myself, and yes Pictures dont Loop, i wasnt aware of that fact.
This also means Overlay Maps can never Loop? Or is there a Script somewhere that makes to map fixed Pictures also Loop?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-picture-loop-on-the-map.90405/