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

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
H3artbr0ken
Newbie
Posts: 13
Joined: Sun Aug 04, 2013 4:03 pm
Completed: Double the Fun (MLP)
Projects: Bliss Stage, Always Darkest After Dawn
Organization: Ruined Childhood Studios
IRC Nick: h3artbr0ken
Location: Tartarus
Contact:

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

#1 Post 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...
Attachments
splashscreenfuckingup.jpg
Last edited by H3artbr0ken on Fri Aug 09, 2013 4:59 am, edited 1 time in total.

User avatar
H3artbr0ken
Newbie
Posts: 13
Joined: Sun Aug 04, 2013 4:03 pm
Completed: Double the Fun (MLP)
Projects: Bliss Stage, Always Darkest After Dawn
Organization: Ruined Childhood Studios
IRC Nick: h3artbr0ken
Location: Tartarus
Contact:

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

#2 Post 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.
Attachments
13186fc3a76cbec605b37282c0dd127a.png

User avatar
leon
Miko-Class Veteran
Posts: 554
Joined: Sun Oct 09, 2011 11:15 pm
Completed: Visual Novel Tycoon, Night at the Hospital, Time Labyrinth, The Buried Moon, Left of Center, Super Otome Quest
Projects: Lemon Project, Porcelain Heart, Dream's Dénouement
Organization: Team ANARKY
Contact:

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

#3 Post 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

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

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

#4 Post 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

User avatar
H3artbr0ken
Newbie
Posts: 13
Joined: Sun Aug 04, 2013 4:03 pm
Completed: Double the Fun (MLP)
Projects: Bliss Stage, Always Darkest After Dawn
Organization: Ruined Childhood Studios
IRC Nick: h3artbr0ken
Location: Tartarus
Contact:

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

#5 Post 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.

User avatar
H3artbr0ken
Newbie
Posts: 13
Joined: Sun Aug 04, 2013 4:03 pm
Completed: Double the Fun (MLP)
Projects: Bliss Stage, Always Darkest After Dawn
Organization: Ruined Childhood Studios
IRC Nick: h3artbr0ken
Location: Tartarus
Contact:

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

#6 Post 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...
Attachments
936eb4fc68f94afaa5d83e718bc8ed2a.png

Post Reply

Who is online

Users browsing this forum: Imperf3kt, Princesky