Ren'Py Inputting Animation/Movie to Renpy

WhitePhantom

Active Member
Donor
Game Developer
Feb 21, 2018
975
4,407
Hi,

Does anybody know how to do this.
I've spent hours following some kids guide on Youtube, copied it word for word and his works, mine doesn't.

I've got, before the game starts:
image movie = Movie(size=(1920, 1080), xpos=0, ypos=0, xanchor=0, yanchor=0)

Followed by at the appropriate time:
play movie "sex1.ogv" loop
show movie with fade

Then a menu to reply or stop.

All I get is a fade for a second and then the menu, no movie at all.

I'm genuinely at the point with this I want to throw my PC out the window and abandon the game because I can't get it to work and the guide I'm following works flawlessly despite me doing the same thing.

Here's the guide if anybody is interested
tube.com/watch?v=uocg8LOgfcw

Hopefully somebody can help ^^

Thanks
 

Epadder

Programmer
Game Developer
Oct 25, 2016
568
1,058
That video is out of date, the Movie function is now different.
An example:
Code:
image main_menu = Movie(play="main_menu.ogv")

label somelabel:
   show main_menu with fade

menu my_menu:
    "DO SOMETHING":
        #### SOME CODE ####
    "DO SOMETHING ELSE":
        ##### SOME OTHER CODE #####
Current documentation:
 

WhitePhantom

Active Member
Donor
Game Developer
Feb 21, 2018
975
4,407
Cheers!
I've got it working now, but I'll change it to the new way so it's more up to date, thanks! :)

I figured out the first problem incase it helps somebody else.
If you turn sound off in options.rpy, movies do not work.
I turned sound from False to True (despite not having any sound) and it started working
 

Aeilion

Member
Jun 14, 2017
125
144
Cheers!
I've got it working now, but I'll change it to the new way so it's more up to date, thanks! :)

I figured out the first problem incase it helps somebody else.
If you turn sound off in options.rpy, movies do not work.
I turned sound from False to True (despite not having any sound) and it started working
Tss .... I had the same problem 1h after your message. But obviously I had not seen it... I ended up finding but I will have gained so much time... :coldsweat: Thanks anyway ^^
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,294
15,156
I figured out the first problem incase it helps somebody else.
If you turn sound off in options.rpy, movies do not work.
I turned sound from False to True (despite not having any sound) and it started working
For those interested, it's because "play" is initially intended for audio. So, as optimization, it do nothing if the player asked for no sound. Obviously, it became a problem when "play" started to be also used for video.