Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Spriter Import functions - Free Code!

Author
Message
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 26th Apr 2012 18:03 Edited at: 27th Apr 2012 13:44
Recently I took an interest in this thread: Best Sprite Animation Tool!! will AppGameKit support this?

I have now produced some fairly simple to use functions which can import the scml file data from Spriter which are free to use in your projects.





DOWNLOAD V0.0.3 edited 27th April 2012

latest changes
V0.0.3
added sc_getCharacterImageID(charID,name$)
added sc_setCharacterImageID(charID,name$,imageID)
added sc_createCharacterImage(file$)

The download contains a sample project and all of the required functions needed to import and use Spriter Beta export files.

The "scmlloader.agc" file contains all the requirements and info and can be imported easily into any project. All arrays, globals etc have been given a "sc_" prefix but it is possible your own project might contain globals that are duplicated in the file so please check if you experience any problems.

Attachments

Login to view attachments
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 26th Apr 2012 18:06
Screenshot...

Attachments

Login to view attachments
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 26th Apr 2012 20:49
This looks great Baxslash. Do you parse the files on the fly, or load them into arrays? Not looked at the code yet, but saw some stuff on the spriter post.

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 26th Apr 2012 22:13
It's all loaded into arrays. That way you can select animations etc by name.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 26th Apr 2012 22:51
GREAT work!
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 26th Apr 2012 23:06
Nice work! let the spriter people know that agk supports it now
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 26th Apr 2012 23:35
Thanks guys!

Quote: "Nice work! let the spriter people know that agk supports it now"

I have been in touch with lucid the lead developer this week. He said he'd keep me appraised of any new developments.

polomint
11
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 27th Apr 2012 11:29
You da man baxslash, excellent work. Can't wait to try this when I get things sorted,

Blackberry App Development & ZX Spectrum Game Development.
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 27th Apr 2012 13:07
Thanks baxslash and congratulations!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 27th Apr 2012 13:43 Edited at: 27th Apr 2012 13:47
The download in the first post has been updated to include code for manually adding alternate images and some sample code where our hero gets a new sword:



V0.0.3
added sc_getCharacterImageID(charID,name$)
added sc_setCharacterImageID(charID,name$,imageID)
added sc_createCharacterImage(file$)

EDIT: I'm going back onto my main project now so I won't be making any further changes for a while. There is enough in this latest download to make good use of Spriter Beta version and lay the groundwork for further development at a later date. Perhaps when the full version is released

Attachments

Login to view attachments
MadTinkerer
13
Years of Service
User Offline
Joined: 21st Nov 2010
Location:
Posted: 27th Apr 2012 17:46
Thanks so much! I funded Spriter without knowing that it would be AppGameKit compatible, but now I'm really looking forward to using the full version with AppGameKit!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 27th Apr 2012 17:53 Edited at: 27th Apr 2012 17:54
Great, glad to produce something useful

EDIT: I'll need to update it as the format evolves...

Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 28th Apr 2012 11:26
Maybe some moderator should make this an sticky at top ?
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 19th May 2012 10:32
@ baxslash -

This is excellent - thank you v much. Any chance of a port for code for DBPro (* or is it easy to port?)

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th May 2012 10:53
I might do a DBPro port when the final version of Spriter comes out. Until then it's not worth the time.

The code wouldn't be too hard to edit to DBPro...

Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 19th May 2012 11:11
@ baxslash - actually that makes perfect sense.

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...

Login to post a reply

Server time is: 2024-03-29 14:54:58
Your offset time is: 2024-03-29 14:54:58