Hello everyone,
Has anyone used the Sprite Control? It's an include file that adds 2d like functions to works with sprites in 3D. I am having a little problem using it. I am using a 2D image as background. CameraClsMode is set to False, True (don't clear video buffer) so the image won't be erased. However, when I use Sprite Control's functions to display a sprite, a dialog box to be exact (which is supposedly drawn in front of the camera, sometimes it's not drawn, or only the text appears, or only the dialog appears. Here is my dialog function called from the main loop:
What am I doing wrong? Thanks.
Has anyone used the Sprite Control? It's an include file that adds 2d like functions to works with sprites in 3D. I am having a little problem using it. I am using a 2D image as background. CameraClsMode is set to False, True (don't clear video buffer) so the image won't be erased. However, when I use Sprite Control's functions to display a sprite, a dialog box to be exact (which is supposedly drawn in front of the camera, sometimes it's not drawn, or only the text appears, or only the dialog appears. Here is my dialog function called from the main loop:
Function ShowDialog(msg$) dlg_sprite = LoadImage3D("dialog_bg.png") ;dialog box background message = Text3D (0,200,msg$) ;message text entity DrawImage3D dlg_sprite,0,200 EntityAlpha dlg_sprite,0.5 ;dialog loop While 1 UpdateWorld RenderWorld Flip If KeyDown(57) ; spacebar FreeEntity message FreeEntity dlg_sprite Exit End If Wend End Function
What am I doing wrong? Thanks.