Posted: Sat Mar 22, 2008 4:27 pm Post subject: Duplicating a sprite
Is there any way in Turing to quickly make multiple copies of a sprite (i.e. in a loop)?
Sponsor Sponsor
Zampano
Posted: Sat Mar 22, 2008 6:19 pm Post subject: Re: Duplicating a sprite
And why would you want to?
For any object using that same sprite, couldn't you just reference the same loaded copy of the sprite? But I think you could. How about something like:
code:
var sprites:flexible array 1..1 of int
for c : 1 .. 50
new sprites, c
sprites (c):=Pic.FileNew("picture.jpg")
end for