- 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.
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
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.
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.
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
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 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
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: