Animate Sprites in B3D

Blitz3D Forums/Blitz3D Beginners Area/Animate Sprites in B3D

Yeah, just do:

sprite = CreateSprite()

texture = LoadAnimTexture("tex1.png",32,32,0,10) ; load a 32 x 32 animated texture with 10 frames of animation.
Global frame = 0 ; frame of animation

EntityTexture sprite,texture,frame


Anytime you want to change frame, just do EntityTexture again, but change the frame variable to what frame you want :o)