Page 1 of 1

Engine switch

Posted: Wed Oct 16, 2019 9:03 pm
by leviathanimation
So I'll try to keep this short. I already made a visual novel but it was only for windows because of the engine. I decided it was a good idea to switch to ren'py because it can actually export to mac and other systems. So the thing is, I already made all my artwork assets and they are kinda huge, so I sort of have to rescale everything for ren'py now, but I have like more than 600 images... Is it possible to set a custom resolution?

Re: Engine switch

Posted: Wed Oct 16, 2019 9:17 pm
by rayminator
when you create a new game with renpy it will ask you what resolution you want to make your game as there should a button there that says custom GUI

default is 1280 x 720
there is also
1066 x 600
1920 x 1080

so also can change it later if you need to in the gui.rpy

just look for

Code: Select all

init python:
    gui.init(1280, 720)

Re: Engine switch

Posted: Wed Oct 16, 2019 9:44 pm
by Imperf3kt
There's an option for a custom resolution when creating a new game, it's on the bottom of the list.

Note though that the gui is optimised for a 16:9 aspect ratio, so you'll need to edit it if your aspect ratio is different.

Re: Engine switch

Posted: Wed Oct 16, 2019 10:28 pm
by leviathanimation
Imperf3kt wrote: Wed Oct 16, 2019 9:44 pm There's an option for a custom resolution when creating a new game, it's on the bottom of the list.

Note though that the gui is optimised for a 16:9 aspect ratio, so you'll need to edit it if your aspect ratio is different.
Thank you!

Re: Engine switch

Posted: Wed Oct 16, 2019 10:34 pm
by leviathanimation
rayminator wrote: Wed Oct 16, 2019 9:17 pm when you create a new game with renpy it will ask you what resolution you want to make your game as there should a button there that says custom GUI

default is 1280 x 720
there is also
1066 x 600
1920 x 1080

so also can change it later if you need to in the gui.rpy

just look for

Code: Select all

init python:
    gui.init(1280, 720)
Hmm I tried to do that with a custom resolution but their is an error:

File "game/script.rpy", line 2: expected statement.
gui.init(1024, 600)

Re: Engine switch

Posted: Wed Oct 16, 2019 11:45 pm
by + ali3nn +
leviathanimation wrote: Wed Oct 16, 2019 10:34 pm
rayminator wrote: Wed Oct 16, 2019 9:17 pm when you create a new game with renpy it will ask you what resolution you want to make your game as there should a button there that says custom GUI

default is 1280 x 720
there is also
1066 x 600
1920 x 1080

so also can change it later if you need to in the gui.rpy

just look for

Code: Select all

init python:
    gui.init(1280, 720)
Hmm I tried to do that with a custom resolution but their is an error:

File "game/script.rpy", line 2: expected statement.
gui.init(1024, 600)
the gui.init is already in gui.rpy, on line 12. you edit that, instead of pasting another init.

Re: Engine switch

Posted: Wed Oct 16, 2019 11:54 pm
by leviathanimation
+ ali3nn + wrote: Wed Oct 16, 2019 11:45 pm
leviathanimation wrote: Wed Oct 16, 2019 10:34 pm
rayminator wrote: Wed Oct 16, 2019 9:17 pm when you create a new game with renpy it will ask you what resolution you want to make your game as there should a button there that says custom GUI

default is 1280 x 720
there is also
1066 x 600
1920 x 1080

so also can change it later if you need to in the gui.rpy

just look for

Code: Select all

init python:
    gui.init(1280, 720)
Hmm I tried to do that with a custom resolution but their is an error:

File "game/script.rpy", line 2: expected statement.
gui.init(1024, 600)
the gui.init is already in gui.rpy, on line 12. you edit that, instead of pasting another init.
Thanks I got it fixed now!