About Movie Cutscenes

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
AHAKuo
Regular
Posts: 41
Joined: Tue Feb 06, 2018 11:10 am
Projects: SoUnd Is ToxIc
Organization: AHAKuo
Tumblr: ahakuo
Deviantart: ahakuo
Contact:

About Movie Cutscenes

#1 Post by AHAKuo »

I had an issue with the $ renpy.movie.... command that plays a cutscene in fullscreen.


The thing is, I have this moment in the game where after the cutscene, the game plays a video behind the text box (changes the scene basically.)

Like a scene would be showing, let’s say a “school bg” and during that a cutscene plays over the scene. After the cutscene ends, the scene that was showing before the cutscene changes to something else, but the problem is that the previous scene shows in just a split second right after the cutscene before changing to the different scene.


I know maybe my explaining isnt that clear but I’ll give the code.
scene school bg
”And... play!”
$ renpy.movie_cutscene “video.example”
scene schoolhall bg
At the scene schoolhall bg, the school bg scene from before changes after the cutscene, but it isnt a seamless change. The school bg scene appears for a split second before changing to schoolhall bg. And I dont want it to show.

Is there a way to hide the school bg scene while the cutscene is playing? Or is there any way to get rid of this issue?
Working on:

Image

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

Re: About Movie Cutscenes

#2 Post by Imperf3kt »

Maybe try to fade the background to black first?

Code: Select all

    scene school bg
    ”And... play!”
    scene black with Fade (0) # or Dissolve
    $ renpy.movie_cutscene “video.example”
    scene schoolhall bg
    
No need to define 'black'
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
AHAKuo
Regular
Posts: 41
Joined: Tue Feb 06, 2018 11:10 am
Projects: SoUnd Is ToxIc
Organization: AHAKuo
Tumblr: ahakuo
Deviantart: ahakuo
Contact:

Re: About Movie Cutscenes

#3 Post by AHAKuo »

Imperf3kt wrote: Thu Feb 22, 2018 3:13 am Maybe try to fade the background to black first?

Code: Select all

    scene school bg
    ”And... play!”
    scene black with Fade (0) # or Dissolve
    $ renpy.movie_cutscene “video.example”
    scene schoolhall bg
    
No need to define 'black'

I did that at first and it worked ok. But is there a way to do it without the fade?
Working on:

Image

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

Re: About Movie Cutscenes

#4 Post by Imperf3kt »

Just use scene black minus the fade should do it. Not sure why I included a 0 second (1frame in newer renpy versions) fade to begin with.

Code: Select all

    scene school bg
    ”And... play!”
    scene black
    $ renpy.movie_cutscene “video.example”
    scene schoolhall bg
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
AHAKuo
Regular
Posts: 41
Joined: Tue Feb 06, 2018 11:10 am
Projects: SoUnd Is ToxIc
Organization: AHAKuo
Tumblr: ahakuo
Deviantart: ahakuo
Contact:

Re: About Movie Cutscenes

#5 Post by AHAKuo »

Imperf3kt wrote: Thu Feb 22, 2018 4:37 pm Just use scene black minus the fade should do it. Not sure why I included a 0 second (1frame in newer renpy versions) fade to begin with.

Code: Select all

    scene school bg
    ”And... play!”
    scene black
    $ renpy.movie_cutscene “video.example”
    scene schoolhall bg 
[/quote]




This is perfect! Thank you a lot for the help! It works well now :) I don't know why the message doesn't get out of the quote lol
Working on:

Image

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

Re: About Movie Cutscenes

#6 Post by Imperf3kt »

AHAKuo wrote: Fri Feb 23, 2018 6:33 am This is perfect! Thank you a lot for the help! It works well now :) I don't know why the message doesn't get out of the quote lol
That'd be because I didn't close the "code" tag.
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: Ahrefs [Bot], Google [Bot]