Renpy Play Video

MonaLav

New Member
Oct 3, 2024
8
5
Hi guys today i will show you how to play video in both scene or in menu background

Open the script.rpy with your text editor

We should have a mp4 format to our video

Simple example in scene

Python:
label start:
    scene bg room
    "Let's watch a video!"

    # Play the video
    play video "video.mp4"

    # Wait until the video finishes
    "The video has ended."

    return
Simple example in background

Python:
label start:
    scene bg room
    "Let's watch a video!"

    # Set a background while the video plays
    show bg video_background

    # Play the video
    play video "video.mp4"

    # Wait until the video finishes
    "The video has ended."

    return
Wish you good coding
 
  • Like
Reactions: i cookie.you