(Question) Make a loading screen before entering the scene ?

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
NNaosuke
Newbie
Posts: 3
Joined: Thu Dec 01, 2016 11:43 am
Contact:

(Question) Make a loading screen before entering the scene ?

#1 Post by NNaosuke »

I just want to know, what can I make the loading screen in the game before entering the main scene

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: (Question) Make a loading screen before entering the sce

#2 Post by indoneko »

What kind of loading screen? Do you have a reference picture of it?

If this is a question about how to code it in Renpy, then you should've posted in Renpy Question sub forum instead of here...
My avatar is courtesy of Mellanthe

User avatar
mugenjohncel
Hentai Poofter
Posts: 2121
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Re: (Question) Make a loading screen before entering the sce

#3 Post by mugenjohncel »

NNaosuke wrote:I just want to know, what can I make the loading screen in the game before entering the main scene
That's easy... you can simulate a loading screen in renpy by doing this...

First, make a fake loading graphics

Code: Select all

init: 
    image loading = "graphics/loading_screen.jpg"
    #assuming you put your graphics in "graphics" folder. Change accordingly..."
Then you use it like this...

Code: Select all

    scene loading with fade
    $ renpy.pause(4.0, hard=True)
    #True makes it un-clickable to give the impression the game is loading something in the background
    scene background_02 with fade
    show uncle_mugen with dissolve
    m "And... were here... "
    m "Me, You and the background behind me..."
    m "Everything was loaded properly."



Edit: I added a working demo here so you can play with it...
Glorious Loading Screen Demo.zip
Drop this in your Renpy Root Directory
(1.41 MiB) Downloaded 277 times
"POOF" (...what have I done)

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: (Question) Make a loading screen before entering the sce

#4 Post by gas »

@Mugen: Hi Uncle! Nice to see ya!

You can simply put an image in the game folder called "presplash.png".
Just that, really, Ren'py automatically show it in the "loading" phase. No coding.

If it goes too fast, use this:
define config.minimum_presplash_time = x.x

where x.x are the minimum seconds the image must show up.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
mugenjohncel
Hentai Poofter
Posts: 2121
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Re: (Question) Make a loading screen before entering the sce

#5 Post by mugenjohncel »

gas wrote:@Mugen: Hi Uncle! Nice to see ya!
Yahoo... and uh...

Now that I look at it more closely... yes, I may have read this very wrong... and interpreted it as wanting to fake a loading screen... :oops:

"POOF" (Disappears)

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: (Question) Make a loading screen before entering the sce

#6 Post by indoneko »

gas wrote:You can simply put an image in the game folder called "presplash.png".
Just that, really, Ren'py automatically show it in the "loading" phase. No coding..
My renpy launcher simply refuses to launch my game whenever I do something like that. Is there any additional option that I must set (beside the minimum presplash time) ?
I'm using the new GUI.
My avatar is courtesy of Mellanthe

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: (Question) Make a loading screen before entering the sce

#7 Post by Donmai »

indoneko wrote:I'm using the new GUI.
Maybe the new GUI doesn't have this feature? The usefulness of the presplash image was questioned five years ago. viewtopic.php?f=32&t=16060
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: (Question) Make a loading screen before entering the sce

#8 Post by Imperf3kt »

The presplash is there for Android, so it should still be there somewhere for PC.

off to the docs, I guess.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: (Question) Make a loading screen before entering the sce

#9 Post by indoneko »

So, a presplash.png in a game directory will actually block renpy launcher on PC? Is it by design? (I'm talking about the new version, with the new GUI)
My avatar is courtesy of Mellanthe

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: (Question) Make a loading screen before entering the sce

#10 Post by gas »

I'm using it in that very exact moment, new GUI and Linux.
Work perfectly as intended.
Just created a presplash.png, and dropped in the game folder (not the images, the game, where there are scripts).

("new gui" means nothing, the core is the same whatever, legacy or new, you use).
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: (Question) Make a loading screen before entering the sce

#11 Post by Donmai »

gas wrote:("new gui" means nothing, the core is the same whatever, legacy or new, you use)
Partially true. viewtopic.php?p=444546#p444546
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: (Question) Make a loading screen before entering the sce

#12 Post by indoneko »

gas wrote:I'm using it in that very exact moment, new GUI and Linux.
Work perfectly as intended.
Just created a presplash.png, and dropped in the game folder (not the images, the game, where there are scripts).

("new gui" means nothing, the core is the same whatever, legacy or new, you use).
Which renpy version do you use?

I tested this on Windows with several Renpy version, and the result :

Renpy 6.99.12.4 : FAILED
Renpy 6.99.12.2 : FAILED
Renpy 6.99.4 : SUCCESS
Renpy 6.12 : SUCCESS
My avatar is courtesy of Mellanthe

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: (Question) Make a loading screen before entering the sce

#13 Post by gas »

indoneko wrote:
gas wrote:I'm using it in that very exact moment, new GUI and Linux.
Work perfectly as intended.
Just created a presplash.png, and dropped in the game folder (not the images, the game, where there are scripts).

("new gui" means nothing, the core is the same whatever, legacy or new, you use).
Which renpy version do you use?

I tested this on Windows with several Renpy version, and the result :

Renpy 6.99.12.4 : FAILED
Renpy 6.99.12.2 : FAILED
Renpy 6.99.4 : SUCCESS
Renpy 6.12 : SUCCESS
Linux 6.99.12.3
It work also on Wine emulation.

I'll do a quick update now and let's see.

EDIT:
it work even better now XD. On 6.99.12.4 both in Linux and Wine.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
First Aid Kid
Newbie
Posts: 1
Joined: Fri Jul 31, 2020 8:33 pm
Contact:

Re: (Question) Make a loading screen before entering the sce

#14 Post by First Aid Kid »

gas wrote: Tue Mar 14, 2017 6:21 pm
indoneko wrote:
gas wrote:I'm using it in that very exact moment, new GUI and Linux.
Work perfectly as intended.
Just created a presplash.png, and dropped in the game folder (not the images, the game, where there are scripts).

("new gui" means nothing, the core is the same whatever, legacy or new, you use).
Which renpy version do you use?

I tested this on Windows with several Renpy version, and the result :

Renpy 6.99.12.4 : FAILED
Renpy 6.99.12.2 : FAILED
Renpy 6.99.4 : SUCCESS
Renpy 6.12 : SUCCESS
Linux 6.99.12.3
It work also on Wine emulation.

I'll do a quick update now and let's see.

EDIT:
it work even better now XD. On 6.99.12.4 both in Linux and Wine.
Do .gif files work as well?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: (Question) Make a loading screen before entering the scene ?

#15 Post by Imperf3kt »

Renpy does not support .gif files
If you want animation you can use ATL, which strings together a bunch of still images, similar to how the graphics interchange format works.

However, you must do this in the splashscreen, it won't work in the presplash.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: simple_human