[SOLVED] Can you 'add' a movie to a renpy screen?

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
redeller
Newbie
Posts: 4
Joined: Fri Aug 12, 2022 5:14 pm
Contact:

[SOLVED] Can you 'add' a movie to a renpy screen?

#1 Post by redeller » Mon Aug 22, 2022 8:48 pm

So I've been searching how to add a movie to renpy and have only found how to add it to a label using "show." However, from my limited understanding, I can't use show in a screen, so I'm having trouble adding my movie to a screen. When I try to add the movie, it says that the image name is "not found".

Here is the code for how I formatted the movie image:

Code: Select all

image wavy_bg = Movie(size=(1920,1080),channel="movie",play="../images/maze/horsefight/wavybg.ogv",loop=True)
And here is where I add it:

Code: Select all

screen horse_fight:
    add "#272727"

    add wavy_bg
Am I adding this wrong or is there not a way to add it to a screen?

Thanks in advance!
Last edited by redeller on Mon Aug 22, 2022 10:40 pm, edited 1 time in total.

User avatar
laure44
Regular
Posts: 60
Joined: Mon Mar 08, 2021 10:55 pm
Projects: Arkan'sTower, Gemshine Lorelei!
Location: France
Contact:

Re: Can you 'add' a movie to a renpy screen?

#2 Post by laure44 » Mon Aug 22, 2022 9:18 pm

You'll need to use strings.

Code: Select all

    add "wavy_bg"

redeller
Newbie
Posts: 4
Joined: Fri Aug 12, 2022 5:14 pm
Contact:

Re: Can you 'add' a movie to a renpy screen?

#3 Post by redeller » Mon Aug 22, 2022 10:39 pm

That works thanks sm!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]