How to make a picture loop on the map?

sawworm

Sir Waste Time A Lot
Veteran
Joined
Jul 28, 2013
Messages
107
Reaction score
26
First Language
Turkish
Primarily Uses
RMVXA
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:


When I go one square up the clouds disappears.


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.)
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
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
 

sawworm

Sir Waste Time A Lot
Veteran
Joined
Jul 28, 2013
Messages
107
Reaction score
26
First Language
Turkish
Primarily Uses
RMVXA
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.

 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
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
 

sawworm

Sir Waste Time A Lot
Veteran
Joined
Jul 28, 2013
Messages
107
Reaction score
26
First Language
Turkish
Primarily Uses
RMVXA
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.
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
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.
 
Last edited:

sawworm

Sir Waste Time A Lot
Veteran
Joined
Jul 28, 2013
Messages
107
Reaction score
26
First Language
Turkish
Primarily Uses
RMVXA
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.
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
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?
 

sawworm

Sir Waste Time A Lot
Veteran
Joined
Jul 28, 2013
Messages
107
Reaction score
26
First Language
Turkish
Primarily Uses
RMVXA
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 ^.^
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,600
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
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
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
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?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top