Page 1 of 1

Layering Elements within a Screen [SOLVED]

Posted: Tue Sep 14, 2021 6:26 pm
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!

Re: Layering Elements within a Screen

Posted: Tue Sep 14, 2021 7:03 pm
by rayminator
this is how to do it

Code: Select all

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

Re: Layering Elements within a Screen

Posted: Tue Sep 14, 2021 8:31 pm
by DBMalachite
Ack, I knew it would be an easy fix >_<;; !!

Thank you!