b2dMoviePlaying

Category: 2D Overlay

Syntax:

b2dMoviePlaying:Int(handle:Int)


Parameters

Returns

1 if playing or paused, otherwise 0



Summary

Returns 1 while the movie is playing or paused, and 0 when it is stopped, has finished, or the handle is not a movie. Use b2dIsMoviePaused to tell playing from paused.

A movie that is not looping becomes finished when it reaches its end, so this is how a program notices a cutscene is over.

View detailed documentation online



Example
b2dPlayMovie(movie)
While b2dMoviePlaying(movie)
    sysUpdateEvents()
    b2dCls()
    b2dDrawMovieScaled(movie, 0, 0, 800, 600)
    b2dFlip()
Wend

See examples/Runtime/31 - Movies.


BambooBasic © 2026 Michael Denathorn