Text above players' head: transparancy

Blitz3D Forums/Blitz3D Programming/Text above players' head: transparancy

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

	DeleteChatBalloonFromPlayer(whichPlayerIDSaidIt)

	b.chatBalloon = New chatBalloon
	b\timeToLive = timeToLive
	b\entity = LoadSprite("images/chatBalloon.tga",2,theParent)
	b\textEntity = CreateSprite(b\entity)
	b\net_id = whichPlayerIDSaidIt
	

	
	img = CreateImage(128,64)
	SetBuffer ImageBuffer (img)
	ClsColor 255,255,255
	Cls
	Color 0,0,0
	drawText(x2d,y2d,128,64,theText$,4,0)	
	MaskImage img,0,0,0
	b\texture = CreateTexture(128,64,4)
	SetBuffer TextureBuffer(b\texture)
	DrawImage img,0,0
	SetBuffer BackBuffer()
	EntityTexture b\textEntity,b\texture
	Color 255,255,255
	
	; tekst op ballon
	MoveEntity b\textEntity,1.3,1.1,2
	HandleSprite b\textentity,-1,-1
	ScaleSprite b\textEntity,6,2.5
	SpriteViewMode b\textEntity,1
	; ballon
	MoveEntity b\entity,0,1,0
	HandleSprite b\entity,-1,-1
	ScaleSprite b\entity,8,4
	SpriteViewMode b\entity,1



What the above does: create a balloon texture, and place text on a second texture.(it is written to a texture).

The problem: I want the background of the second texture (text) to be transparant. Only the text needs to be shown.
As you can see, I tried masking, but I still get an opaque background.

Anyone?

Thanks!