Skip to content

MoviePosition

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzLLVM

MoviePosition 〔BlitzLLVM〕

MoviePosition:Float32 movie:Int32
Parameter Mode Type Default Description
movie In Int32 required A movie handle from OpenMovie.

Returns: The position in seconds, or 0 if the movie is not open.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Gives where a movie is, in seconds from its start. The position counts the time that the movie plays: it stands still while the movie is paused (PauseMovie) and stops at the end of the movie. Asking for it starts a movie that was not drawn yet, like MoviePlaying. This is a BlitzLLVM extension: the originals do not tell where a movie is.

Differences

  • A debug build (-d) stops the program when the movie does not exist, for example the 0 of a movie that failed to open, other builds ignore the command, see Debug handle checks.

Examples

While MoviePlaying(movie)
	DrawMovie movie, 0, 0
	Text 10, 10, MoviePosition(movie) + " of " + MovieLength(movie) + " s"
	Flip
Wend

Related Commands

CloseMovie, DrawMovie, GetMovieTexture 〔BlitzLLVM〕, MovieHeight, MovieLength 〔BlitzLLVM〕, MoviePlaying, MovieVolume 〔BlitzLLVM〕, MovieWidth

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally