Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Tue May 21, 2013 7:32 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue May 01, 2012 12:06 pm 
Veteran
User avatar

Joined: Sun Mar 21, 2010 3:20 am
Posts: 442
Location: Hámbala
Completed: Tortichki // Zayay
Organization: SHINE
A quick question: can I have a screen that is displayed overlay, on top of everything and just sticks there the whole time (until I tell it to hide of course)? And how do I do that? Or I shouldn't be using screens at all for that job? My screen just consists of couple of images (which actually are animations which I've defined before).

I won't post a code since this is a general question.

Thank you~

_________________
ImageImage Image
Finished:
- Zayay [Otome?][BxPlayer][NaNo 2013]
- Tortichki [Drag&Drop mini game]


Last edited by Alera on Wed May 02, 2012 3:37 pm, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Tue May 01, 2012 3:39 pm 
Miko-Class Veteran
User avatar

Joined: Thu May 14, 2009 8:15 pm
Posts: 585
Projects: Castle of Arhannia
if you use show screen, it shouldn't leave until you tell it to.

if for whatever reason it leaves when you don't want it to, you can always use the same command to keep the screen up, as it doesn't throw an error if you tell a screen to show when it's already being shown


Top
 Profile Send private message  
 
PostPosted: Tue May 01, 2012 4:06 pm 
Veteran
User avatar

Joined: Sun Mar 21, 2010 3:20 am
Posts: 442
Location: Hámbala
Completed: Tortichki // Zayay
Organization: SHINE
Ahaa...Well the problem is that I have a "call screen" after that and it makes that screen I want to be always above disappear. And if I try to change the "call" to "show" on it so I could show other screens at the same time too, it just gets me errors, telling me that things aren't defined and so on. >.< So I guess I need some other solution. ;w;

_________________
ImageImage Image
Finished:
- Zayay [Otome?][BxPlayer][NaNo 2013]
- Tortichki [Drag&Drop mini game]


Top
 Profile Send private message  
 
PostPosted: Tue May 01, 2012 7:26 pm 
Veteran
User avatar

Joined: Sun Feb 12, 2012 9:17 am
Posts: 331
Location: USA
Completed: Locked-In, Young Earth Road Trip, The Cards Never Lie
Projects: The Censor
Yeah, I have a white border ui overlay that is always "on" but it disappears when I call a screen. A MacGuyver solution might be to incorporate the overlay images into the ground screen?

_________________
Lucky Special Games - Locked-In - Young Earth Road Trip - The Censor (Nano 2013) WIP


Top
 Profile Send private message  
 
PostPosted: Tue May 01, 2012 9:59 pm 
Miko-Class Veteran
User avatar

Joined: Mon Feb 06, 2012 9:50 pm
Posts: 716
Location: NYC
Projects: Icebound
Organization: Fastermind Games
I incorporated one using a new user-created layer which I showed the screen on... that way I'm thinking it wouldn't disappear when you called another screen on a different layer.

_________________
ImageImage


Top
 Profile Send private message  
 
PostPosted: Wed May 02, 2012 7:29 am 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1112
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
Are you using screen layers? or an overlay layer?
Screen layers can be show several screens at the same time.

_________________


Top
 Profile Send private message  
 
PostPosted: Wed May 02, 2012 8:35 am 
Veteran
User avatar

Joined: Sun Mar 21, 2010 3:20 am
Posts: 442
Location: Hámbala
Completed: Tortichki // Zayay
Organization: SHINE
Can anyone give me a code for these things you're talking about? ;w; Thank you~

Ah, nevermind, found out how to make a new layer and how to display images on top of everything. Just images though, not screens. When I tried

Code:
$ renpy.show_screen("screen1", layer='top')


it showed me the screen at first, but when I called the other screen, it disappeared again. :/ Bleh...

Well at least I solved my current problem because just images works for me for what I want to do now, but I'm still curious if it's possible with screens.

_________________
ImageImage Image
Finished:
- Zayay [Otome?][BxPlayer][NaNo 2013]
- Tortichki [Drag&Drop mini game]


Top
 Profile Send private message  
 
PostPosted: Wed May 02, 2012 11:15 am 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 939
Have you tried to set "zorder"s for screens to make one of them to be on top all the time?


Top
 Profile Send private message  
 
PostPosted: Wed May 02, 2012 1:05 pm 
Veteran
User avatar

Joined: Sun Mar 21, 2010 3:20 am
Posts: 442
Location: Hámbala
Completed: Tortichki // Zayay
Organization: SHINE
Alex wrote:
Have you tried to set "zorder"s for screens to make one of them to be on top all the time?


No, I haven't. O: How do I do that? ^^b

_________________
ImageImage Image
Finished:
- Zayay [Otome?][BxPlayer][NaNo 2013]
- Tortichki [Drag&Drop mini game]


Top
 Profile Send private message  
 
PostPosted: Wed May 02, 2012 2:20 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 939
Hm, like
Code:
screen overlay_scr:
    zorder 100
    # stuff

screen one_of_others:
    zorder 60   # number should be less then "overlay_scr" has or without this line (zorder 0 is default)
    # stuff

http://www.renpy.org/doc/html/screens.html#screen-statement


Top
 Profile Send private message  
 
PostPosted: Wed May 02, 2012 3:37 pm 
Veteran
User avatar

Joined: Sun Mar 21, 2010 3:20 am
Posts: 442
Location: Hámbala
Completed: Tortichki // Zayay
Organization: SHINE
Alex wrote:
Hm, like
Code:
screen overlay_scr:
    zorder 100
    # stuff

screen one_of_others:
    zorder 60   # number should be less then "overlay_scr" has or without this line (zorder 0 is default)
    # stuff

http://www.renpy.org/doc/html/screens.html#screen-statement


>w< This works perfectly!!! Thank you~<3

_________________
ImageImage Image
Finished:
- Zayay [Otome?][BxPlayer][NaNo 2013]
- Tortichki [Drag&Drop mini game]


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group