Help with game start transition

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
nerupuff
Veteran
Posts: 211
Joined: Sat Dec 02, 2017 2:24 am
Contact:

Help with game start transition

#1 Post by nerupuff »

Hi! It seems basic (especially for the pros out there) but I cannot seem to wrap my head around it.

Let me explain: I want a transition as the game is first started, when the main menu is loaded.

This comment here on the options.py file states that:

Code: Select all

## A variable to set the transition used when the game starts does not exist.
## Instead, use a with statement after showing the initial scene.
* I wish such a variable existed, but since it doesn't, I've been trying to experiment placing "with" wherever I think will work (but it does not appear with the intended result)

I have a splashscreen of text in nvl form, so players will have to read through it the first time they open the game, before the main menu loads. I've been adding "with dissolve" but it doesn't dissolve at all. The main menu still pops up abruptly. I just want it to dissolve in slowly for a smooth transition.

I have tried using the label "before_main_menu" but I might not be using it properly.

After the splashscreen (just dummy text for now), I used this:

Code: Select all

label splashscreen:

    SC "Thank you for downloading the demo!"
    SC "We hope you will enjoy trying out our game."
    SC "Please let us know your feedback by commenting on our itch.io {a=itch URL}page{/}!

    nvl clear

label before_main_menu:
    with fade
    return
I've also tried placing "with dissolve" before the "return" inside the splashscreen label, but it does not dissolve either and it still looks very abrupt. Any options/tips?
ImageImage
Hire me for proofreading, editing, and (maybe) writing! ♡ Check here!

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

Re: Help with game start transition

#2 Post by Imperf3kt »

You'll need to use something with, "with"

For example, try the following.

Code: Select all

label start:
    show gui.main_menu_background # might need to replace that with the file path wrapped in quotes
    with fade

I have a project that does exactly this. I might need to dig it out if the code above doesn't work as expected.
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
nerupuff
Veteran
Posts: 211
Joined: Sat Dec 02, 2017 2:24 am
Contact:

Re: Help with game start transition

#3 Post by nerupuff »

Hm, I tried that but the fade/dissolve transition started after I pressed "Start Game" and not prior to starting up the game.exe itself.

I've managed to add fading out effects to the end of the splashscreen, but the main menu just really pops out with no smooth transition into it, so it looks off.
ImageImage
Hire me for proofreading, editing, and (maybe) writing! ♡ Check here!

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Help with game start transition

#4 Post by isobellesophia »

nerupuff wrote: Fri Mar 29, 2019 12:57 am Hm, I tried that but the fade/dissolve transition started after I pressed "Start Game" and not prior to starting up the game.exe itself.

I've managed to add fading out effects to the end of the splashscreen, but the main menu just really pops out with no smooth transition into it, so it looks off.

Code: Select all

## Used when entering the game menu from the game.
define config.enter_transition = fade
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
nerupuff
Veteran
Posts: 211
Joined: Sat Dec 02, 2017 2:24 am
Contact:

Re: Help with game start transition

#5 Post by nerupuff »

Yep, I tinkered with that too, but what that does is applies a fade when you right-click or press escape to access the game menu, not really when you first run the .exe of your RenPy game.
ImageImage
Hire me for proofreading, editing, and (maybe) writing! ♡ Check here!

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Help with game start transition

#6 Post by isobellesophia »

nerupuff wrote: Fri Mar 29, 2019 4:03 am Yep, I tinkered with that too, but what that does is applies a fade when you right-click or press escape to access the game menu, not really when you first run the .exe of your RenPy game.
Oops, that is not i supposed to post.

Code: Select all

## Used when entering the main menu from the splashscreen.
define config.end_splash_transition = fade
Probably you owned a splashscreen.
I am a friendly user, please respect and have a good day.


Image

Image


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

Re: Help with game start transition

#7 Post by Imperf3kt »

Oh you want it when the splashscreen transitions to the main menu, not when the main menu transitions to the game.

Use label before_main_menu and place some transitions in there.
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
nerupuff
Veteran
Posts: 211
Joined: Sat Dec 02, 2017 2:24 am
Contact:

Re: Help with game start transition

#8 Post by nerupuff »

Imperf3kt wrote: Fri Mar 29, 2019 4:59 am Oh you want it when the splashscreen transitions to the main menu, not when the main menu transitions to the game.

Use label before_main_menu and place some transitions in there.
I tried that suggestion, but it still does not transition smoothly.
ImageImage
Hire me for proofreading, editing, and (maybe) writing! ♡ Check here!

Post Reply

Who is online

Users browsing this forum: Google [Bot]