problem with createtexture and flags
Blitz3D Forums/Blitz3D Programming/problem with createtexture and flags
| ||
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 |
| ||
Have a look at the EntityBlend command. I guess you need a statement like: EntityBlend l\sprite,3 Sergio. P.S. 1) Use JPG for images, and better if you give a link where to click on it 2) you don't need to write the '$' at the end of your variable inhalt$; you have to do it once, when you declare the variable 3) I suggest you to give a more meaningful name for your type element, instead of the anonymous 'l' |