
-----------------------------------
sarm2005
Sat Mar 22, 2008 4:27 pm

Duplicating a sprite
-----------------------------------
Is there any way in Turing to quickly make multiple copies of a sprite (i.e. in a loop)?

-----------------------------------
Zampano
Sat Mar 22, 2008 6:19 pm

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:
var sprites:flexible array 1..1 of int
for c : 1 .. 50
new sprites, c
sprites (c):=Pic.FileNew("picture.jpg")
end for
