[SOLVED] video help please

HostFromSpace

New Member
Jun 29, 2020
6
19
ok so i think im trying to do something simple but its not working out. maybe someone can replicate what im doing and help.
so i started a game with size of 1280x720. and i wanted the game to play a video after you pick a option. like: stay here or go to room. after you pick room i want it to play a video. but my game skips video and goes back.
Code:
label house1:
    # Add your house1 scene and dialogue here
    scene bg house1
    e "Welcome to house 1!"

    menu:
        "Go to Room":
            # Play the video
            image room= Movie(play="room.webm", loop=False)
            # Jump back to house1 after the video finishes
            jump house1
        "Go back":
            jump start
this video size is (512 by 512)

now i did get it to work in the main menu when the game starts from this code
Code:
## Main and Game Menus #########################################################

## The images used for the main and game menus.
define gui.main_menu_background = "gui/main_menu.png"
define gui.main_menu_background = Movie(play="images/room.webm")
define gui.game_menu_background = "gui/game_menu.png"
but it does not play the 512x512. i have a same video with a larger size and it played it but its zoomed in. not sure of the size but i think its bigger than the game of 1280x720.
but that was just a test to see if i could play a video. i seen that code from youtube.

im just trying to play a video.
wondering if someone can fix this code or give me something that will work.
Code:
label house1:
    # Add your house1 scene and dialogue here
    scene bg house1
    e "Welcome to house 1!"

    menu:
        "Go to Room":
            # Play the video
            image room= Movie(play="room.webm", loop=False)
            # Jump back to house1 after the video finishes
            jump house1
        "Go back":
            jump start
i got alot of errors but i finally got this code to make the game start { image room= Movie(play="room.webm", loop=False) } but it just skips the video.
webm seemed to work for the main menu but not what i want. i have no idea if i need to use another video format or i have the video saved in the wrong place or my code is wrong.
im just trying to play a 512x512 video after a option is picked.
 
Last edited:

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,131
14,814
ok so i think im trying to do something simple but its not working out. [...]

i got alot of errors but i finally got this code to make the game start { image room= Movie(play="room.webm", loop=False) } but it just skips the video.
webm seemed to work for the main menu but not what i want. i have no idea if i need to use another video format or i have the video saved in the wrong place or my code is wrong.
im just trying to play a 512x512 video after a option is picked.
*sigh* Why not starts by reading the documentation, and precisely ?
 
  • Yay, new update!
Reactions: Meaning Less

HostFromSpace

New Member
Jun 29, 2020
6
19
*sigh* Why not starts by reading the documentation, and precisely ?
well i tryed out alot of codes on there i failed most of the time. (room.webm) webm formant didn't work for me. i used this code
Code:
$ renpy.movie_cutscene("room.mpg"
witch give me a error saying cant find the file. finally i got it to work tho. i saved the video in image file so i needed to add that. so this is the code that works
Code:
$ renpy.movie_cutscene("images/room.mpg")
thanks for the link. wish you could have just typed the code i needed, but all good. (y)