Layering Elements within a Screen [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
DBMalachite
Newbie
Posts: 6
Joined: Mon Dec 10, 2018 11:46 pm
Contact:

Layering Elements within a Screen [SOLVED]

#1 Post by DBMalachite »

This is probably a very easy fix, but I'm stumped as to how I would layer text over an image within a set screen.

Code: Select all

screen testscreen:
    text "this is a test!" 
    image "gui/textbox.png"
When I run the game with this, the text is underneath the image. How would I set it to have it layered over the image?

Thanks!
Last edited by DBMalachite on Tue Sep 14, 2021 8:32 pm, edited 1 time in total.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Layering Elements within a Screen

#2 Post by rayminator »

this is how to do it

Code: Select all

screen testscreen: 
    add "gui/textbox.png"
    text "this is a test!" 

DBMalachite
Newbie
Posts: 6
Joined: Mon Dec 10, 2018 11:46 pm
Contact:

Re: Layering Elements within a Screen

#3 Post by DBMalachite »

Ack, I knew it would be an easy fix >_<;; !!

Thank you!

Post Reply

Who is online

Users browsing this forum: downover, Google [Bot], TimmyzFTW