How to display text on top of a video loop?

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
evilk
Newbie
Posts: 4
Joined: Thu Jun 14, 2018 8:30 am
Contact:

How to display text on top of a video loop?

#1 Post by evilk »

How to display text on top of a video loop? Please help

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: How to display text on top of a video loop?

#2 Post by kivik »

Not sure if there's some sort of special circumstances of what you're doing, but the easiest thing to do is to create a screen and add the text on top.

I assumed your video is being displayed on the master layer.

evilk
Newbie
Posts: 4
Joined: Thu Jun 14, 2018 8:30 am
Contact:

Re: How to display text on top of a video loop?

#3 Post by evilk »

kivik wrote: Thu Jun 14, 2018 11:18 am Not sure if there's some sort of special circumstances of what you're doing, but the easiest thing to do is to create a screen and add the text on top.

I assumed your video is being displayed on the master layer.
Thanks for the reply. But i am new to renpy coding. can you please show me how to do it?

i just need to show character dialog box on top of the video.

# this is the code i am using

scene black

play movie "bg.mkv" loop
show movie with dissolve

d "lets finish this"
d "123"
d "134"
Last edited by evilk on Thu Jun 14, 2018 12:34 pm, edited 1 time in total.

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: How to display text on top of a video loop?

#4 Post by kivik »

Oh so you're trying to show character dialogues over a video? How are you showing the video at the moment?

evilk
Newbie
Posts: 4
Joined: Thu Jun 14, 2018 8:30 am
Contact:

Re: How to display text on top of a video loop?

#5 Post by evilk »

kivik wrote: Thu Jun 14, 2018 12:34 pm Oh so you're trying to show character dialogues over a video? How are you showing the video at the moment?
# this is the code i am using

scene black

play movie "bg.mkv" loop
show movie with dissolve

d "lets finish this"
d "123"
d "134"

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: How to display text on top of a video loop?

#6 Post by kivik »

Have you looked at the documentation on how movies work? Your code doesn't look the same as the documentation here:

https://www.renpy.org/doc/html/movie.ht ... ie-sprites

I don't know what actually happens when you use the play command, but if you define your movie as a displayable like the documentation linked above, it should work.

Note: you need to define your movie image outside the label block.

Post Reply

Who is online

Users browsing this forum: Google [Bot]