Animated Sprites
Blitz3D Forums/Blitz3D Programming/Animated Sprites
| ||
I know there are no animated sprite functions, but I bel;ieve it is possible to create themm usingf a 'blank' sprite, a Brsh, and an AnimTexture. Please could somoeone provide a brief code basis for doing this? |
| ||
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 |