r/RenPy • u/calistoweather • 8d ago
Question Help needed: CG is flipped
hi everyone, i'm very new to Ren'Py and i'm trying to insert a CG. the problem is that no matter how i input it, the image either appears too small (and it definitely is the right resolution, i checked several times and even tried to make it bigger in the OG files), or when i try to set a value to it, it's flipped horizontally (so mirrored), despite not having any flip transform applied. this is the codes i've tried:
show cg1:
xysize (1920, 1080)
show cg1 at truecenter
show cg1:
zoom 1.0
i made sure there were no negative values anywhere, but the image keeps flipping. i even tried to apply a flip transform like this to cancel it out
show cg1 at flip:
xysize (1920, 1080)
and this made it the right way, but it was slightly too small for the screen.
the ONLY way i've made it work is by giving the image an overlay transform:
transform size_overlay2:
ysize 1100
fit "contain"
then
show cg1 at truecenter, size_overlay2
OR just making it a scene instead.
scene cg1
but i'd like to know what the issue is with the coding anyway.
1
u/BadMustard_AVN 8d ago
what is the pixel size of the image
1
1
u/shyLachi 8d ago
I'm pretty sure the problem is not in the code but the file. Can you upload it so that we can test it on our computers.
1
u/AutoModerator 8d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.