Side Images Problem..

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
AngelicBlood
Regular
Posts: 88
Joined: Wed Feb 06, 2013 11:08 am
Projects: House of Hearts
Location: Narnia
Contact:

Side Images Problem..

#1 Post by AngelicBlood » Sat Apr 27, 2013 12:30 pm

I browsed for some answers, but people seem to have a different problem .-.
(Idon'tknowImanoobdontkillme.)
Anyways, my artist sent me an amazing sprite, and I resized it so it could be a side image.*cough cough*
Image
I use this code...

Code: Select all

$ c = Character(player_name, color="#6699FF",window_right_padding = 160, image="chiblink", xalign=0.0, yalign=1.0)
Am I doing something wrong? .-.

pwisaguacate
Veteran
Posts: 356
Joined: Mon Mar 11, 2013 11:03 pm
Contact:

Re: Side Images Problem..

#2 Post by pwisaguacate » Sat Apr 27, 2013 1:01 pm

If you want the sprite to be on the left, use window_left_padding instead. Right now your dialogue has a margin on the right side.

You can adjust the side image location with xoffset/yoffset (xalign/yalign won't do anything for me):

Code: Select all

define a = Character('Aluxes', color="#f47835", window_left_padding=150, image="a")
image side a = im.Image("aluxes-side_normal.png", xoffset=10, yoffset=-10)

User avatar
Cinto
Regular
Posts: 42
Joined: Sat Apr 27, 2013 11:36 pm
Tumblr: geckcellent.tumblr.com
Contact:

Re: Side Images Problem..

#3 Post by Cinto » Sun Apr 28, 2013 6:52 pm

I had the same problem a while ago.

Something I found helpful (it appears to do the same thing as pwisaguacate's solution, but looks a little different):

Code: Select all

define c = Character('Character_Name', window_left_padding=200,
          show_side_image=Image("character_portrait.png", xalign=1.0, yalign=1.0))
The align and padding should be adjusted to the size of your image.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot, zyric