something similar to an animiated gif ?

Blitz3D Forums/Blitz3D Beginners Area/something similar to an animiated gif ?

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.

I think you need to replace this part:
tex=CreateTexture(128,128,1+4,10)
EntityTexture cube,tex

;create anim texture
For i=0 To 9
 SetBuffer(TextureBuffer(tex,i))
 ClsColor 255,255,255 : Cls
 Color 0,0,0 : Text 0,0,"Texture frame "+(i+1)
 ClsColor 0,0,0 : Color 255,255,255
 SetBuffer BackBuffer()
Next

with the LoadAnimTexture command:
tex = LoadAnimTexture("file.png",1,128,128,0,8)
Where 128 and 128 are the width and height of a single png.

Then in a graphical editor, you should create an imagestrip. That is a large image that contains all 8 pngs, in a row (left->right, 8x1) or a matrix. (left->right, top->down, 3x3)
If you want to keep the 8 images separate, you can load them separately (into a Dim for instance) and use EntityTexture to apply them to the mesh one by one. However I think LoadAnimTexture is faster.