[Solved] Game background scaling smaller background images(without cutting them off)
Posted: Mon Jun 03, 2019 5:34 pm
So maybe I'm just blind but I can't find anything on scaling the background images set through "scene bg ...". As I expected I didn't find any screens or styles linking to it. After not finding anything in scripts I tried the following
Is there some way to stretch the width? Preferably without having to write it out every command. Any help would be appreciated 
My background images are 800 by 600 while the renpy window is 1066 by 600(smallest recommended size). For reasons I'd rather not get into, I don't don't want to post-process them. One platform that doesn't support renpy, I wrote a simple interpreter engine thing and I just scale the image up to I think it was 1.2 on the fly. (one of the reasons I don't want to change image sizes, is because it'll be on different platforms at different sizes).
Code: Select all
image bg test = Image("bg/bg bg10.png", xfill=True)
scene bg test
image bg test = Image("bg/bg bg10.png", xsize=1066)
scene bg test
#cuts off parts
scene bg bg10:
zoom 2.0 (1.2-2.0 tested)
#causes error
scene bg bg10:
xfill True
#causes error
scene bg bgimg3:
xsize 1066
My background images are 800 by 600 while the renpy window is 1066 by 600(smallest recommended size). For reasons I'd rather not get into, I don't don't want to post-process them. One platform that doesn't support renpy, I wrote a simple interpreter engine thing and I just scale the image up to I think it was 1.2 on the fly. (one of the reasons I don't want to change image sizes, is because it'll be on different platforms at different sizes).