Loading animated sprites

Blitz3D Forums/Blitz3D Programming/Loading 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.

It's kind of annoying but ultimately pretty flexible how Blitz works with animated textures. You load the texture using LoadAnimTexture to break up the image into the separate frames. Then you increment the frame on an object by repeatedly using EntityTexture (or whatever texture command you want) and changing the frame parameter each time you apply the texture. The frame is the third parameter (first optional parameter) of the EntityTexture command.