Multiples sprites with same image...

Blitz3D Forums/Blitz3D Programming/Multiples sprites with same image...

Dimas(Posted 2010) [#1]
I have a image (a star), and I want to draw multiple version on screen (starfield).

How can I have 100 sprites with the sane images?

Expansion kit:

The star image is composed of 10 frames, I can have this multiple frames just as a single bmp files (as the ones loaded by loadimageanim) or a bunch of files as star001.bmp,... star010.bmp).

I want them as sprites as stars can be overlaped (some kind of particle system).

BTW, if there is an easy system to do it, you re welcomed.

:D


Warner(Posted 2010) [#2]
First, create a single sprite, than use CopyEntity to create multiple instances of it. About the other question: there is no LoadAnimSprite. However, there is LoadAnimTexture. After loading the texture, use EntityTexture to assign the texture to the sprite.


Dimas(Posted 2010) [#3]
Thank you!