been a while (almost a year) since my last post, just a quick question, I want to display a sprite at 720x576 (Pal SD rez) and overlay a movie on it using RenderMovieFrame (the movie is also 720x576).
The movie is black with moving text at the bottom (textured text), what I want to see is my sprite image with the text moving over it, currently all I see is my movie and not my sprite, can this be done?
Heres what i wrote (I know not much use with out my files sorry)
Code: Select all
InitSprite()
If InitMovie() = 0
MessageRequester("Error", "Can't initialize movie playback !", 0)
End
EndIf
MovieName$ = "c:\images\text.mpg"
If MovieName$
If LoadMovie(0, MovieName$)
OpenWindow(0, 100, 150, 720, 576, "PureBasic - Movie")
OpenWindowedScreen(WindowID(0), 0, 0, 720, 576,0,0,0)
sprite=LoadSprite(0,"c:\images\blackboard.bmp")
PlayMovie(0,#PB_Movie_Rendered)
Repeat
RenderMovieFrame(0,SpriteID(0))
DisplaySprite(0,0,0)
FlipBuffers()
Until WaitWindowEvent() = #PB_Event_CloseWindow
Else
MessageRequester("Error", "Can't load the movie...", 0)
EndIf
EndIf
