Can't get side image to yalign.

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
sheetcakeghost
Veteran
Posts: 382
Joined: Sat Sep 19, 2009 9:19 pm
Contact:

Can't get side image to yalign.

#1 Post by sheetcakeghost » Fri Sep 05, 2014 5:28 am

Code: Select all

    define btlm = Character("???", 
                    show_two_window=True, 
                    window_left_padding=160, 
                    show_side_image=Image("char/npc/butler.png", xalign=-0.33, yalign=26.0))

Code: Select all

    define mc = DynamicCharacter("mcfull",
                    show_two_window=True,
                    window_left_padding=160, 
                    show_side_image=Image("char/mc/base.png", xalign=-0.0, yalign=223.0))
Those two snippets of code there work. I had no trouble aligning those side images.

Code: Select all

    define wm = Character("???",
                    show_two_window=True,
                    window_left_padding=160, 
                    show_side_image=Image("char/w/base.png", xalign=-0.0, yalign=25.0))
However, for whatever reason, that code refuses to yalign. They look identical to me, I have no idea what I'm doing wrong. The side image will xalign without issue.

I haven't touched the default align code in screens either, nor do I want to. Each image needs its own separate coordinates.

User avatar
sheetcakeghost
Veteran
Posts: 382
Joined: Sat Sep 19, 2009 9:19 pm
Contact:

Re: Can't get side image to yalign.

#2 Post by sheetcakeghost » Fri Sep 05, 2014 5:58 am

After some trouble shooting I can confirm that it's the image itself preventing the yalign, but I have no idea why. It works with the other images. They're all PNG files and are roughly the same size. After copy pasting the image into the file of one of the working images I can now yalign it. So technically the problem is solved, but I'd like to know why it happened in the first place.

User avatar
meiri
Regular
Posts: 177
Joined: Wed Jun 25, 2014 6:21 pm
Projects: Tutor Tabitha, Movement
Organization: Blue Bottlecap Games
Location: East Coast, US
Contact:

Re: Can't get side image to yalign.

#3 Post by meiri » Fri Sep 05, 2014 7:10 pm

I'm not sure why it happened in your case, but I had this problem once and here is what solved it for me (although you already have it fixed, this is for future reference :) ) : http://lemmasoft.renai.us/forums/viewto ... 08#p333608
What's in a loop? A loop iterated in any other way would output as sweet.
--
Have a look at my GxG kinetic novel, Movement, if you have the chance?

Post Reply

Who is online

Users browsing this forum: Google [Bot], zyric