[SOLVED] cut to black then fade 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
+ ali3nn +
Regular
Posts: 32
Joined: Wed Aug 14, 2019 3:08 pm
Contact:

[SOLVED] cut to black then fade transition

#1 Post by + ali3nn + »

hi, me again.

to begin with, defining transitions in renpy is pretty easy. but the thing is i dont want the transition to be between scenes/labels, i want it to begin when the player first clicks on the "new game" or "start" button.
i know i can change the transition as shown in options.rpy (extended to show where its located, ofc)

Code: Select all

## Transitions #################################################################
##
## These variables set transitions that are used when certain events occur.
## Each variable should be set to a transition, or None to indicate that no
## transition should be used.

## Entering or exiting the game menu.

define config.enter_transition = dissolve
define config.exit_transition = dissolve


## Between screens of the game menu.

define config.intra_transition = dissolve


## A transition that is used after a game has been loaded.

define config.after_load_transition = None


## Used when entering the main menu after the game has ended.

define config.end_game_transition = None
is this not possible in renpy ?
Last edited by + ali3nn + on Sat Oct 19, 2019 5:59 pm, edited 1 time in total.

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: cut to black then fade transition

#2 Post by isobellesophia »

+ ali3nn + wrote: Sat Oct 05, 2019 8:20 pm hi, me again.

to begin with, defining transitions in renpy is pretty easy. but the thing is i dont want the transition to be between scenes/labels, i want it to begin when the player first clicks on the "new game" or "start" button.
i know i can change the transition as shown in options.rpy (extended to show where its located, ofc)

Code: Select all

## Transitions #################################################################
##
## These variables set transitions that are used when certain events occur.
## Each variable should be set to a transition, or None to indicate that no
## transition should be used.

## Entering or exiting the game menu.

define config.enter_transition = dissolve
define config.exit_transition = dissolve


## Between screens of the game menu.

define config.intra_transition = dissolve


## A transition that is used after a game has been loaded.

define config.after_load_transition = None


## Used when entering the main menu after the game has ended.

define config.end_game_transition = None
is this not possible in renpy ?

Actually... this one should do.

Code: Select all

textbutton _("Start Game") action Start(transition=Fade(2, 0, 0)) 
Or just

Code: Select all

label start:
    scene classroom
    with fade
    "Hmmmm?"

Try if it is works.
I am a friendly user, please respect and have a good day.


Image

Image


+ ali3nn +
Regular
Posts: 32
Joined: Wed Aug 14, 2019 3:08 pm
Contact:

Re: cut to black then fade transition

#3 Post by + ali3nn + »

isobellesophia wrote: Sat Oct 05, 2019 9:40 pm Actually... this one should do.

Code: Select all

textbutton _("Start Game") action Start(transition=Fade(2, 0, 0)) 
Or just

Code: Select all

label start:
    scene classroom
    with fade
    "Hmmmm?"

Try if it is works.

not necessarily what im looking for, but thank you anyway ^^
to elaborate though, you click on the begin button -> the screen turns to black, no dissolve, and the button noise plays -> then in fades the scene.

im starting to think im asking for too much ;;

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: cut to black then fade transition

#4 Post by isobellesophia »

+ ali3nn + wrote: Sat Oct 05, 2019 9:50 pm
isobellesophia wrote: Sat Oct 05, 2019 9:40 pm Actually... this one should do.

Code: Select all

textbutton _("Start Game") action Start(transition=Fade(2, 0, 0)) 
Or just

Code: Select all

label start:
    scene classroom
    with fade
    "Hmmmm?"

Try if it is works.

not necessarily what im looking for, but thank you anyway ^^
to elaborate though, you click on the begin button -> the screen turns to black, no dissolve, and the button noise plays -> then in fades the scene.

im starting to think im asking for too much ;;

Like this one?

Code: Select all

label start:
scene black
$ renpy.pause (1.0, hard=True)
play sound "noisebutton.ogg"
scene classroom with fade
Im sorry if i didn't understand it too much.
I am a friendly user, please respect and have a good day.


Image

Image


+ ali3nn +
Regular
Posts: 32
Joined: Wed Aug 14, 2019 3:08 pm
Contact:

Re: cut to black then fade transition

#5 Post by + ali3nn + »

isobellesophia wrote: Sat Oct 05, 2019 9:40 pm
Like this one?

Code: Select all

label start:
scene black
$ renpy.pause (1.0, hard=True)
play sound "noisebutton.ogg"
scene classroom with fade
Im sorry if i didn't understand it too much.
this worked perfectly, thank you!!
but you probably want to indent the code:

Code: Select all

label start:
    scene black
    $ renpy.pause (1.0, hard=True)
    scene classroom with fade

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: [SOLVED] cut to black then fade transition

#6 Post by isobellesophia »

Yeah sorry for that, i just got quick and too lazy to put that. :)
I am a friendly user, please respect and have a good day.


Image

Image


+ ali3nn +
Regular
Posts: 32
Joined: Wed Aug 14, 2019 3:08 pm
Contact:

Re: [SOLVED] cut to black then fade transition

#7 Post by + ali3nn + »

isobellesophia wrote: Sat Oct 19, 2019 9:17 pm Yeah sorry for that, i just got quick and too lazy to put that. :)
its fine.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]