DrawImage() not drawing image?

BlitzMax Forums/MiniB3D Module/DrawImage() not drawing image?

Captain Wicker (crazy hillbilly)(Posted 2012) [#1]
I have a small problem while converting my Blitz3D project to minib3d. Here is what I am trying to do.
UpdateWorld
RenderWorld
If debug2=1
	Text 0,0,"X ROT: "+camx3
	Text 0,50, "Y ROT: "+camy3
	Text 0,100, "Z ROT: "+camz3
	Text 0,150, ""
	Text 0,200, "X POS: "+camxp3
	Text 0,250, "Y POS: "+camyp3
	Text 0,300, "Z POS: "+camzp3
EndIf
If EntityCollided(cube2,mom2_col)
	DrawImage(com4,0,0)
	WaitKey
	po#=po#+1
EndIf
Flip(-1)

but for some reason the image isn't being drawn to the screen. Is there another necessary step to take before this will work? Everything else has been converted just fine and dandy. Please help me. =)

Last edited 2012


Midimaster(Posted 2012) [#2]
yes you have to set two commandos before you draw something non-3d!

Repeat
	RenderWorld()
	BeginMax2D

		DrawImage AnyImage,0,0

		SetImageFont font
		SetColor 50,150,250
		DrawText "Hallo",0,0
	EndMax2D

	Flip 0
	WaitTimer fps
Until KeyHit(KEY_ESCAPE)