Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Posts: 2
- Joined: Thu Nov 16, 2017 1:25 pm
Is there any way of having different settings defined for different build platforms? For example if I wanted to increase button size only on my android build without manually changing variables between builds.
Code: Select all
if build_platform == "Android":
define gui.button_height = 70
define gui.button_height = 36
Thanks for any help
- Eileen-Class Veteran
- Posts: 1679
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
Yes you can do that but you might need to use it differently.
I haven't got enough time to give you an example, sorry.
The link above should help though.
A very quick idea would be the following:
I imagine you need to define both sizes and then select between the two via the styling property of each screen.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Users browsing this forum: No registered users