LiminaliaLiminalia
How-to: Play videos

Play videos

Open in Claude (new tab)
On this page

The “Movie” part plays a video across the whole screen, and waits until it ends before going on. Use it for an opening or a flashback video. To keep a video playing as the background, use the “Bg video” part.

The examples on this page use the project you make in the tutorial, “Shiori of the Library.”

Put the videos in “Videos” on the “Assets” screen beforehand. Here, a 4-second opening.mp4 and a looping night_sky.mp4 are used.

Play a video full screen

  1. Select the text block just before where the video should play (here, “All at once, I remembered the sunset on that hill.”).
  2. Type “movie” in the search box at the top of the parts panel, and double-click “Movie” in the results.
  3. In the parameter panel on the right, click the file field and choose opening.mp4 from the list.
  4. So that players can skip it with a click, check skip.
The Movie part, with opening.mp4 chosen in file and skip checked.

When the text moves on, the video plays across the whole screen. The message window is hidden while it plays. When the video ends (or when the player clicks, if skip is checked), the story goes on to the next text.

The video playing.
ParameterWhat it sets
volumeVolume (0 to 100; 100 by default)
skipCan be skipped with a click (unchecked by default)
skip-seenA video the player has watched to the end can be skipped with a click, even if skip isn’t checked (checked by default)
muteNo sound
timeFade-in time
menuShow the quick menu while it plays
subtitlesSubtitle file (a WebVTT .vtt file, chosen from “Videos” in the assets)

Play a video as the background

  1. Select the movie block (“Movie opening.mp4”). With “movie” still in the search box, double-click “Bg video.”
  2. Choose night_sky.mp4 in file.
  3. It should loop, so leave loop checked. The video has no sound, so check mute.
The Bg video part, with night_sky.mp4 chosen in file and mute checked.

The video keeps playing above the background image and below the sprites. The text goes on as usual.

A video of the hill at night playing as the background.

Remove the background video

  1. Select the text block just before where the video should be removed (here, “The stars drifted slowly across the sky.”).
  2. With “movie” still in the search box, double-click “Stop bg video” (@stop-bg-movie).
  3. Enter the time it takes to remove it, 1000, in time.
The Stop bg video part. Enter 1000 in time.

The video disappears, and the background underneath (the library) shows again.

The background video has disappeared, and the library is back.

To remove it after it has played through once, use “Await bg video” (@wait-bg-movie). It stops the loop and waits until the video plays to the end.

In code

All at once, I remembered the sunset on that hill.
@movie opening.mp4 skip=true
@bg-movie night_sky.mp4 mute=true
Before I knew it, I was standing on the hill at night.
The stars drifted slowly across the sky.
@stop-bg-movie time=1s
When I opened my eyes, I was back in the library.

For details, see @movie, @bg-movie and @stop-bg-movie.

Commands used on this page

@stop-bg-movie@wait-bg-movie@movie@bg-movie