Side Image Problems

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
morpheoMancer
Newbie
Posts: 6
Joined: Tue Apr 01, 2014 5:39 pm
Contact:

Side Image Problems

#1 Post by morpheoMancer »

I'm brand new to this forum and to Ren'py itself, and I have an embarrassingly simple problem: How do I get a character's portrait to show up in the text bar without obscuring the text? I used this page as the basis, but it puts the character's face in front of the text without moving the text to the side; I checked the tutorial but couldn't find a specific fix for it.

Apologies for what I'm sure is something extremely basic, but it's been driving me nuts for the past hour.

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Side Image Problems

#2 Post by Asceai »


morpheoMancer
Newbie
Posts: 6
Joined: Tue Apr 01, 2014 5:39 pm
Contact:

Re: Side Image Problems

#3 Post by morpheoMancer »

...Well I sure have egg on my face. Thank you.

morpheoMancer
Newbie
Posts: 6
Joined: Tue Apr 01, 2014 5:39 pm
Contact:

Re: Side Image Problems

#4 Post by morpheoMancer »

Actually one more question! Where do I put style.window.padding_left = 150 so that the text will adjust properly?

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Side Image Problems

#5 Post by Asceai »

In an init python block, like the tutorial says

morpheoMancer
Newbie
Posts: 6
Joined: Tue Apr 01, 2014 5:39 pm
Contact:

Re: Side Image Problems

#6 Post by morpheoMancer »

I saw that, but where do I put the init python block in? As in, which file, where exactly? When I tried in the screen.rpy and script.rpy files I just got errors.

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Side Image Problems

#7 Post by Asceai »

What errors did you get?
It doesn't matter which file you add it to; .RPY files are all loaded and they don't serve specific roles. They are only split up for your convenience.

morpheoMancer
Newbie
Posts: 6
Joined: Tue Apr 01, 2014 5:39 pm
Contact:

Re: Side Image Problems

#8 Post by morpheoMancer »

I'm getting Attribute Error: 'renpy.styleclass.Style' has no attribute 'padding_left'

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Side Image Problems

#9 Post by Asceai »

Huh. That's an error in the tutorial. It's actually left_padding, not padding_left.

morpheoMancer
Newbie
Posts: 6
Joined: Tue Apr 01, 2014 5:39 pm
Contact:

Re: Side Image Problems

#10 Post by morpheoMancer »

Finally fixed! Thank you very much.

Post Reply

Who is online

Users browsing this forum: No registered users