Adding an image over a screen?

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
FamuFamu
Regular
Posts: 111
Joined: Thu Oct 11, 2012 4:52 pm
Contact:

Adding an image over a screen?

#1 Post by FamuFamu »

I want to use a transparent image (A filter of sorts) over a screen, but I can't seem to be able to make it show in front of the screen itself (It always goes to the background), any way of doing this?

Thanks in advance


User avatar
saguaro
Miko-Class Veteran
Posts: 560
Joined: Sun Feb 12, 2012 9:17 am
Completed: Locked-In, Sunrise, The Censor
Organization: Lucky Special Games
itch: saguarofoo
Location: USA
Contact:

Re: Adding an image over a screen?

#3 Post by saguaro »

alternately, the foreground window style property

http://www.renpy.org/doc/html/style_pro ... properties

User avatar
FamuFamu
Regular
Posts: 111
Joined: Thu Oct 11, 2012 4:52 pm
Contact:

Re: Adding an image over a screen?

#4 Post by FamuFamu »

Oops, forgot about the layers, thanks.

Here's what I did

Code: Select all

init python:

    def overlay():
        
        ui.image ("image.png")
        
    config.overlay_functions.append(overlay)
The foreground function will come handy too, thanks!

Post Reply

Who is online

Users browsing this forum: No registered users