Page 1 of 1

Side image not showing on Android

Posted: Sun May 28, 2017 6:52 pm
by Saiffyros
Hey,

I've set the following code for my side image:

image side rodrigo = "side_rodrigo.png"

define a = Character('Aline', color="#c8ffc8")
define r = Character('Rodrigo', color="#c8c8ff")
define e = Character('[firstname]', color="#c8c8ff", image = "rodrigo", window_left_padding=200,)


it's working for pc. But when I try android emulation it's not showing:

Any clue?

Re: Side image not showing on Android

Posted: Sun May 28, 2017 7:33 pm
by papiersam
It could be that Android can't parse the image (size, type, resolution, etc), but I'm thinking that maybe it's just the emulator. Try exporting what you have to an Android app and see the results.

Re: Side image not showing on Android

Posted: Sun May 28, 2017 7:53 pm
by Saiffyros
r_sami wrote:It could be that Android can't parse the image (size, type, resolution, etc), but I'm thinking that maybe it's just the emulator. Try exporting what you have to an Android app and see the results.
I found a solution. Side images are not usually showed in phones, so if you want them to be showed you have to hashtag this in screens:

## If there's a side image, display it above the text. Do not display on the
## phone variant - there's no room.
if not renpy.variant("small"):
add SideImage() xalign 0.0 yalign 1.0

Re: Side image not showing on Android

Posted: Sun May 28, 2017 8:35 pm
by Imperf3kt
You found it, but yeah, comment out that line as it is not needed / incorrect.

Re: Side image not showing on Android

Posted: Wed Sep 05, 2018 11:35 am
by Chivone
Imperf3kt have you found the correct sentence?? I have the same problem :(

Re: Side image not showing on Android

Posted: Wed Sep 05, 2018 11:51 am
by Chivone
The solution is changin "small" for "medium"