Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Duplicating a sprite
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
sarm2005




PostPosted: 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
Sponsor
sponsor
Zampano




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: