I'm trying to put a movie into my game -- its supposed to be a "bonus" video for getting the good ending. Unfortunately the tutorial is less helpful than it is frustrating, since it makes the steps sound easy, but I just don't understand it and even opening the script file to see how the tutorial video is coded hasn't worked.
I've looked and looked and looked for a thread that could help me here, but I guess I haven't looked deep enough. All of the tutorials and threads I've found tell me how to put videos in the menu, but i don't need the video in the menu, so nothing works and I'm at my wit's end ;n;
If anyone can tell me how to put my video in please do -- at this point I'm done trying to figure out where I'm wrong and just want an example of how to do it right!
(btw the video i'm trying to import is a 24-second MP4. i can convert it to another file type if renpy doesn't support .mp4 but for now i know that isn't the main problem.)
Importing a Movie -- Please Help?
-
- Newbie
- Posts: 1
- Joined: Thu Jan 15, 2015 12:07 am
- Tumblr: kittilumpo
- Contact:
- 78909087
- Veteran
- Posts: 277
- Joined: Sat Aug 16, 2014 2:33 pm
- Completed: Dungeons and Don't Do It, Wake Up
- Projects: Lethe
- IRC Nick: Pacermist
- Contact:
Re: Importing a Movie -- Please Help?
Sorry if this is wrong, but in an attempt to help, I've just read the code.
At the beginning of the demo, it places this under the init:
Have you tried this?
Then, when reading further, inferring that the demo 'Eisenhow1952.mpg' is contained in the 'Game' folder, I believe you call it using.
And stop it with:
I'm sorry if I'm wrong, but I've never used movies before :/
At the beginning of the demo, it places this under the init:
Code: Select all
init:
image movie = Movie()
Then, when reading further, inferring that the demo 'Eisenhow1952.mpg' is contained in the 'Game' folder, I believe you call it using.
Code: Select all
$ renpy.movie_cutscene('Eisenhow1952.mpg', 63.0)
show movie at Position(xpos=420, ypos=25, xanchor='left', yanchor='top')
$ renpy.movie_start_displayable('Eisenhow1952.mpg', (352, 240))
Code: Select all
$ renpy.movie_stop()
hide movie
I'm sorry if I'm wrong, but I've never used movies before :/
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Importing a Movie -- Please Help?
Actually, it's simply:
That'll display movie.webm fully inside the window. I'd suggest using webm for the movie format, as it's most likely to work - webm constrains most of the movie's parameters, making it more likely to work.
Code: Select all
$ renpy.movie_cutscene("movie.webm")
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- FrontierGai
- Newbie
- Posts: 19
- Joined: Fri Aug 29, 2014 7:54 pm
- Projects: Irathian Chronicles
- Organization: Frontier First Innovations LLC
- IRC Nick: FrontierGuy
- Location: Pittsburgh, PA
- Contact:
Re: Importing a Movie -- Please Help?
Huzzah, I was going to post about this, but glad I found it here first!PyTom wrote:Actually, it's simply:
That'll display movie.webm fully inside the window. I'd suggest using webm for the movie format, as it's most likely to work - webm constrains most of the movie's parameters, making it more likely to work.Code: Select all
$ renpy.movie_cutscene("movie.webm")
Thanks big T!
Who is online
Users browsing this forum: No registered users