Posted: Mon Nov 05, 2001 2:52 am
Restored from previous forum. Originally posted by cfriedel.
Hi all. I am a newbie to the PB world, so please excuse me if this question has already been answered. Am currently trying to learn how to use the screen and sprite commands. Wrote a little program to try it out (listed below) but it does not seem to work. I have also tried to compile sprite.pb (included in the help) and it does not display either. All I get is a black screen for both. Please note that I am using the registered version of 2.50. My version of DirectX is 8.0A. Thanks for any help in advance. Have a good day.
Cliff Friedel
PS - The Sprite I am using is a 24bit BMP file that is 32x32 in size.
--------------------------------------------------------------------------
If InitSprite(0)=0
MessageRequester("Error","Error: You must have DirectX7 or Better",0)
End
EndIf
If OpenScreen(640,480,24,"Sprite")
LoadSprite(0,"65.bmp",0)
DisplaySprite(0,10,10)
EndIf
Hi all. I am a newbie to the PB world, so please excuse me if this question has already been answered. Am currently trying to learn how to use the screen and sprite commands. Wrote a little program to try it out (listed below) but it does not seem to work. I have also tried to compile sprite.pb (included in the help) and it does not display either. All I get is a black screen for both. Please note that I am using the registered version of 2.50. My version of DirectX is 8.0A. Thanks for any help in advance. Have a good day.
Cliff Friedel
PS - The Sprite I am using is a 24bit BMP file that is 32x32 in size.
--------------------------------------------------------------------------
If InitSprite(0)=0
MessageRequester("Error","Error: You must have DirectX7 or Better",0)
End
EndIf
If OpenScreen(640,480,24,"Sprite")
LoadSprite(0,"65.bmp",0)
DisplaySprite(0,10,10)
EndIf