Page 1 of 1

Positioning images is hard! [edit: half-solved]

Posted: Thu Aug 08, 2013 9:40 pm
by H3artbr0ken
I tried using this recipe: http://www.renpy.org/wiki/renpy/doc/coo ... een_Effect

Code: Select all

define t = Character('Twilight Sparkle', color="#993366")
define d = Character('Discord', color="#CC6633")

image dreamroom = "3DDreamRoom.jpg"

init:
    image splash = "avatarHN.jpg"

label splashscreen:
    $ renpy.pause(0)
    scene black 
    with Pause(0.5)
    
    show splash 
    with dissolve
    with Pause(1.0)
    
    scene black 
    with dissolve
    with Pause(0.5)

    return

label start:
    
scene dreamroom with fade
    
d "Welcome... "
d "You're probably wondering where you are, aren't you?"

return
But it returns this result...

Re: I don't think this is how the splashscreen works

Posted: Thu Aug 08, 2013 10:10 pm
by H3artbr0ken
Additionally, following this: http://www.renpy.org/wiki/renpy/doc/coo ... ide_Images my side image portrait is in the top left corner instead of the bottom left and knowing how to fix that would be great.

Re: I don't think this is how the splashscreen works

Posted: Fri Aug 09, 2013 12:54 am
by leon
That splashscreen recipe says "This page is obsolete" on top... :?
You can try positioning the image with ATL (see the documentation here - http://www.renpy.org/wiki/renpy/doc/ref ... Properties):

Code: Select all

show splash:
    xalign 0.5 yalign 0.5

Re: I don't think this is how the splashscreen works

Posted: Fri Aug 09, 2013 4:27 am
by Elmiwisa
Regarding the side image thing: you need to specify the location of the image using the xalign, yalign property. That can be done at the point when you use the Image statement.
Regarding the splashscreen: you probably need to say what exactly when wrong, since the screenshot there show exactly what you should expect to get. :?
Regarding obsolete page: I think the only thing obsolete about it is that the splashscreen code is no longer provided automatically by Ren'Py. The splashscreen still work just fine. :D

Re: I don't think this is how the splashscreen works

Posted: Fri Aug 09, 2013 4:58 am
by H3artbr0ken
Elmiwisa wrote:Regarding the side image thing: you need to specify the location of the image using the xalign, yalign property. That can be done at the point when you use the Image statement.
Regarding the splashscreen: you probably need to say what exactly when wrong, since the screenshot there show exactly what you should expect to get. :?
Regarding obsolete page: I think the only thing obsolete about it is that the splashscreen code is no longer provided automatically by Ren'Py. The splashscreen still work just fine. :D
Thanks, I'll dive into the documentation for the Xalign/Yalign thing.

Re: Positioning images is hard! [edit: half-solved]

Posted: Fri Aug 09, 2013 8:54 am
by H3artbr0ken
I think I found the markup, now how do I code it in? My python skills are quite rusty. Taking a break from Ren'Py was a mistake...