Screen overlays that remain in place during transitions.

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
Steffenator
Regular
Posts: 53
Joined: Fri Feb 17, 2017 11:58 am
Contact:

Screen overlays that remain in place during transitions.

#1 Post by Steffenator »

It's that time again...
Time to ask for the help of my highly skilled upperclassmen... and women.

I have an overlay that makes it look like the player is looking through binoculars.
I want it to be over all of the displayables, but not the dialogue, side images, etc.
I want it to stay perfectly fixed in place while I change the scene a few times.
Can't get it to work.

I've tried the Fixed() thing... RenPy didn't like that.
I've tried just having it as a sprite, and putting everything "behind" it.
Didn't work either.
I tried creating a screen with it... I think I actually heard the program laugh at my lame attempt on that one.

Ideas?
There once was a language called Ren'Py
that made all the wannabes cry... with joy.
It gave them the power,
they spent every hour,
to finish a game, or die.


User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Screen overlays that remain in place during transitions.

#2 Post by trooper6 »

Create a new layer below screens but above transient and master and show your overlay on that layer.

Documentation on layers: https://www.renpy.org/doc/html/displayi ... yers#layer
The onlayer keyword is discussed just under the layer section, under "Show"

config.layer is documented here: https://www.renpy.org/doc/html/config.h ... fig.layers
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Steffenator
Regular
Posts: 53
Joined: Fri Feb 17, 2017 11:58 am
Contact:

Re: Screen overlays that remain in place during transitions.

#3 Post by Steffenator »

Nice...
layers are awesome.
Thanks, man!
There once was a language called Ren'Py
that made all the wannabes cry... with joy.
It gave them the power,
they spent every hour,
to finish a game, or die.


Post Reply

Who is online

Users browsing this forum: Google [Bot]