Side Images

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
User avatar
kawaii_penguin
Newbie
Posts: 15
Joined: Tue Aug 04, 2015 5:04 pm
Location: USA
Contact:

Side Images

#1 Post by kawaii_penguin »

Okay so I've been having problems.

I know the code and have it all typed in and everything. But my picture isn't showing up, I have the code and the image but it's not showing up when I launch the project.

I need help~! X3
This is just snips of my used code

Code: Select all

image side olivia = "side_olivia"
define l = Character('Olivia', color= "#FFFFFF", image = "olivia_netural", window_left_padding= 160, show_two_window = True)
Attachments
This is what it looks like in-game.<br />(excuse the crappy background and text boxes XD)
This is what it looks like in-game.
(excuse the crappy background and text boxes XD)
Last edited by kawaii_penguin on Sun Aug 23, 2015 6:29 pm, edited 1 time in total.

User avatar
Quelcezot
Regular
Posts: 87
Joined: Tue Apr 21, 2015 6:01 pm
Contact:

Re: Side Images

#2 Post by Quelcezot »

I think to start with you should share a piece of the code. If the code seems to make sense, just make sure that all the files are where you say they are and in a usable format.
LOVE & PEACE

If two people talk long enough they can explain how they feel, maybe.

User avatar
kawaii_penguin
Newbie
Posts: 15
Joined: Tue Aug 04, 2015 5:04 pm
Location: USA
Contact:

Re: Side Images

#3 Post by kawaii_penguin »

Yeah well I followed a tutorial so I hope its all right, I did everything instructed.

I'm editing the post now

User avatar
kawaii_penguin
Newbie
Posts: 15
Joined: Tue Aug 04, 2015 5:04 pm
Location: USA
Contact:

Re: Side Images

#4 Post by kawaii_penguin »

The blank space is where my image supposedly should be.

User avatar
firecat
Miko-Class Veteran
Posts: 540
Joined: Sat Oct 25, 2014 6:20 pm
Completed: The Unknowns Saga series
Projects: The Unknown Saga series
Tumblr: bigattck
Deviantart: bigattck
Skype: bigattck firecat
Soundcloud: bigattck-firecat
Contact:

Re: Side Images

#5 Post by firecat »

you only need to define the character once and then add it, maybe the textbox is covering the picture. try:

Code: Select all

renpy.transition(trans, layer="master")
in the options (i think it's on the options).
Image


Image


special thanks to nantoka.main.jp and iichan_lolbot

User avatar
konett
Regular
Posts: 150
Joined: Fri Apr 26, 2013 4:00 pm
Projects: White Lie, Witching Tower, Tropichu!
Tumblr: cosmickonett
Deviantart: konett
itch: konett
Location: The Netherlands
Contact:

Re: Side Images

#6 Post by konett »

I use the code should be show_side_image instead of image, so;

Code: Select all

define l = Character('Olivia', color= "#FFFFFF", show_side_image = "olivia_netural", window_left_padding= 160, show_two_window = True)
maybe that works? This is from my old code though, so I don't know if it's still relevant.

Edited, because didn't check the message correctly when I posted.[/s]

EDIT2:

Wait no, I think your code should be this instead:

Code: Select all

define l = Character('Olivia', color= "#FFFFFF", image = "olivia", window_left_padding= 160, show_two_window = True)
You image is defined as "olivia", but your side image in the character definition is called "olivia_neutral", so you should change that.

User avatar
firecat
Miko-Class Veteran
Posts: 540
Joined: Sat Oct 25, 2014 6:20 pm
Completed: The Unknowns Saga series
Projects: The Unknown Saga series
Tumblr: bigattck
Deviantart: bigattck
Skype: bigattck firecat
Soundcloud: bigattck-firecat
Contact:

Re: Side Images

#7 Post by firecat »

konett wrote:I use the code should be show_side_image instead of image, so;

Code: Select all

define l = Character('Olivia', color= "#FFFFFF", show_side_image = "olivia_netural", window_left_padding= 160, show_two_window = True)
maybe that works? This is from my old code though, so I don't know if it's still relevant.

Edited, because didn't check the message correctly when I posted.[/s]

EDIT2:

Wait no, I think your code should be this instead:

Code: Select all

define l = Character('Olivia', color= "#FFFFFF", image = "olivia", window_left_padding= 160, show_two_window = True)
You image is defined as "olivia", but your side image in the character definition is called "olivia_neutral", so you should change that.
umm no, or else the computer things there's a file name olivia. it will not support olivia without a .png or .jpg file name.
Image


Image


special thanks to nantoka.main.jp and iichan_lolbot

User avatar
konett
Regular
Posts: 150
Joined: Fri Apr 26, 2013 4:00 pm
Projects: White Lie, Witching Tower, Tropichu!
Tumblr: cosmickonett
Deviantart: konett
itch: konett
Location: The Netherlands
Contact:

Re: Side Images

#8 Post by konett »

firecat wrote:umm no, or else the computer things there's a file name olivia. it will not support olivia without a .png or .jpg file name.
I think you misunderstood me? I think what you're talking about is normal image definition, and if so, then that's true. But the image OP wants to be in the textbox is defined 'image side olivia', but they're referencing 'olivia_neutral' as their side image in the character definition.

The documentation's example is just 'image = "eileen"'. I just tested what I suggested and it works.

User avatar
kawaii_penguin
Newbie
Posts: 15
Joined: Tue Aug 04, 2015 5:04 pm
Location: USA
Contact:

Re: Side Images

#9 Post by kawaii_penguin »

I figured it out~!

Thank you everyone for your help :) ~ Olivia

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]