b2dPlayMovie

Category: 2D Overlay

Syntax:

b2dPlayMovie:Void(handle:Int)


Parameters

Returns

Void



Summary

Starts the movie, with its sound, from the beginning. Pictures are advanced by sysUpdateEvents to keep time with a real clock, so the movie plays at its proper speed however fast the program's own loop runs — if the program falls behind, frames are skipped rather than the movie slowing down. Draw the current frame each loop with b2dDrawMovie.

Does nothing if the movie is already playing, or is paused (use b2dResumeMovie), or has finished — call b2dStopMovie first to play a finished movie again.

View detailed documentation online



Example
b2dPlayMovie(movie)

See examples/Runtime/31 - Movies.


BambooBasic © 2026 Michael Denathorn