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

Username:   Password: 
 RegisterRegister   
 Spryte Module
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
iker




PostPosted: Wed Jan 18, 2006 8:18 pm   Post subject: Spryte Module

I was using some old sprite modules made by some other people, and thought to myself... maby I should make one thats easy to use, and automatically loops the pictures, or oscilates them... so i did, and here it is, my spryte module complete with help and examples. Its not final because I didn't allow for pictures to have words in the name... so instead of having pictures with names for example:
guy1.bmp
guy2.bmp
guy3.bmp
you have to have numbers only such as
121.bmp
122.bmp
123.bmp
where as '12' is like the name, and <n> after that is the picture number
Sponsor
Sponsor
Sponsor
sponsor
iker




PostPosted: Fri Jan 20, 2006 4:20 pm   Post subject: (No subject)

Now I have included the ability to have names with pictures Smile.. now supports up to 100 different sets of 'sprytes', with 100 different frames in each
Only thing is, you can only have one animation at a time for each set.
Anyways, heres the updated version with a beter example, beter help, and a more capable spryte module

if you already have the first version, replace all files with the new ones

oh, and please tell me if you find this usefull or if I can improve anything



Spryte Module.rar
 Description:
Second Version of Spryte Module

Download
 Filename:  Spryte Module.rar
 Filesize:  27.52 KB
 Downloaded:  132 Time(s)

Delos




PostPosted: Fri Jan 20, 2006 5:25 pm   Post subject: (No subject)

Something to improve on? Well...when I tried to run the "spryte test.t" it crashed at 'spryte.FileNew()' - something about the strint() parsing.
iker




PostPosted: Sun Jan 22, 2006 5:20 pm   Post subject: (No subject)

Did you put the Spryte.tu in the turing predefs folder??? Because it should work. Read the READ ME.txt, first thing it tells you to do.
iker




PostPosted: Wed Feb 01, 2006 2:41 pm   Post subject: (No subject)

I know have the MOST UP TO DATE Spryte Module where now you can also draw a single frame from a set so that you can have
code:
Spryte.Frame ("file", 5, 50, 50)

instead of.
code:
Spryte.AdvAnimate ("file", 5, 5, 0, 50, 50)

The new use? you don't have to include any Pic.Draws into your program, you can use the Spryte Module for all (well almost all) drawing/animating needs.
Theres still a help file and a "test" example included in the tiny .rar, so you shouldn't have to ask any questions on how to use it.

Comments and suggestions are greatly appreciated



Spryte Module.rar
 Description:
The newest Update. Get winrar if you don't have it, its beter then winzip

Download
 Filename:  Spryte Module.rar
 Filesize:  32.46 KB
 Downloaded:  125 Time(s)

Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: