[Solved] Can I use renpy.variant('small') instead of renpy.variant('mobile'), touch, pc, web?
Posted: Thu Aug 26, 2021 12:15 pm
Edit: solutions in comments below.
For the sake of keeping things simple.
Instead of doing this:
For the sake of keeping things simple.
Instead of doing this:
Code: Select all
if renpy.variant('mobile') or renpy.variant('touch'):
#or
if renpy.variant('pc') or renpy.variant('web'):
[code]
Can I get away with using this instead in 99% of cases? If this returns true, I know it has to be either mobile or touch. If it' false, I know it's gotta be pc or web.
[code]
if renpy.variant('small'): #if true mobile/touch, if false pc/web