Placement for a side image padding?

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
Mooneon
Regular
Posts: 78
Joined: Sat Jul 04, 2015 4:05 pm
Contact:

Placement for a side image padding?

#1 Post by Mooneon »

Where do I put this code for my side image which is covering the text of my game?:

Code: Select all

style window:
    left_padding 150
Is it on screens.rpy, options.rpy or script.rpy? and also where exactly in it?

User avatar
PetPeeve
Regular
Posts: 70
Joined: Tue Nov 06, 2012 10:40 am
Tumblr: agamemakingblogforcoolkids
Contact:

Re: Placement for a side image padding?

#2 Post by PetPeeve »

It doesn't matter where you put it. Although, I write it

Code: Select all

style.window.left_padding = 150
My coding knowledge verges on vague, but it might make a difference.

I tend to put it in options, just because that's where other coding of that ilk lives.
Avatar by shiohh
ImageImageImageImage

User avatar
Mooneon
Regular
Posts: 78
Joined: Sat Jul 04, 2015 4:05 pm
Contact:

Re: Placement for a side image padding?

#3 Post by Mooneon »

Okay.. But what about the side image?

Code: Select all

define v = Character("Valeriane", image="val")
How do I input it?

User avatar
PetPeeve
Regular
Posts: 70
Joined: Tue Nov 06, 2012 10:40 am
Tumblr: agamemakingblogforcoolkids
Contact:

Re: Placement for a side image padding?

#4 Post by PetPeeve »

By input it, do you mean how do you tell it what 'val' is?

If so you need to define your side images like so

Code: Select all

image side val = "valeriane.png"
This should be in the script file before the start of your story.

You can read more about side images here: https://www.renpy.org/doc/html/side_image.html
Avatar by shiohh
ImageImageImageImage

Post Reply

Who is online

Users browsing this forum: Google [Bot]