Animated Sprites

Blitz3D Forums/Blitz3D Programming/Animated Sprites

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.

Why do you need a code sample? What you just described is exactly how to do it. Just go through the command reference for the commands which do what you described (eg. CreateSprite to create a blank sprite, LoadAnimTexture to load the animated texture, etc.)

Actually come to think of it I don't think you need a brush. You can apply the texture directly to the sprite without a brush using EntityTexture. So the code to do what you described is exactly three lines:
sprite=CreateSprite()
texture=LoadAnimTexture("whatever"...)
EntityTexture sprite,texture