Side image not showing on Android

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
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.
Post Reply
Message
Author
Saiffyros
Newbie
Posts: 14
Joined: Sun May 21, 2017 10:13 pm
Contact:

Side image not showing on Android

#1 Post 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?
Attachments
android
android
pc
pc

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Side image not showing on Android

#2 Post 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.

Saiffyros
Newbie
Posts: 14
Joined: Sun May 21, 2017 10:13 pm
Contact:

Re: Side image not showing on Android

#3 Post 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
Last edited by Saiffyros on Mon May 29, 2017 12:38 am, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Side image not showing on Android

#4 Post by Imperf3kt »

You found it, but yeah, comment out that line as it is not needed / incorrect.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Chivone
Newbie
Posts: 10
Joined: Wed Sep 05, 2018 11:28 am
Contact:

Re: Side image not showing on Android

#5 Post by Chivone »

Imperf3kt have you found the correct sentence?? I have the same problem :(

Chivone
Newbie
Posts: 10
Joined: Wed Sep 05, 2018 11:28 am
Contact:

Re: Side image not showing on Android

#6 Post by Chivone »

The solution is changin "small" for "medium"

Post Reply

Who is online

Users browsing this forum: No registered users