Hi
I have an few problems wirth createtexture and flags. I create an sprite and after that a texture. then ich load the texturebuffer and write a text in this buffer alfter that ich go back to the backbuffer an put this texture on my sprite. So and my prob is that I cant use the flags by createtexture(...,flag) then every time i use this my sprite is complete black (flag 4) or it`s invisible (flag 2) wow can I get this sprit masket
hear are the pic`s:
(with out flag)

(with flag 2)

(with flag 4)

my code is:
l\sprite = CreateSprite(wnd)
HandleSprite l\sprite,-1,-1
ScaleSprite l\sprite ,x_scal,y_scal
MoveEntity l\sprite ,x_pos*2,y_pos*2-(y_scal*2),0
temp = CreateTexture(StringWidth(inhalt$),StringHeight(inhalt$))
SetBuffer TextureBuffer(temp)
Color 255,255,255
Text 0,0,inhalt
SetBuffer BackBuffer()
EntityTexture l\sprite,temp
I have an few problems wirth createtexture and flags. I create an sprite and after that a texture. then ich load the texturebuffer and write a text in this buffer alfter that ich go back to the backbuffer an put this texture on my sprite. So and my prob is that I cant use the flags by createtexture(...,flag) then every time i use this my sprite is complete black (flag 4) or it`s invisible (flag 2) wow can I get this sprit masket
hear are the pic`s:
(with out flag)
(with flag 2)
(with flag 4)
my code is:
l\sprite = CreateSprite(wnd)
HandleSprite l\sprite,-1,-1
ScaleSprite l\sprite ,x_scal,y_scal
MoveEntity l\sprite ,x_pos*2,y_pos*2-(y_scal*2),0
temp = CreateTexture(StringWidth(inhalt$),StringHeight(inhalt$))
SetBuffer TextureBuffer(temp)
Color 255,255,255
Text 0,0,inhalt
SetBuffer BackBuffer()
EntityTexture l\sprite,temp