Nice sample yaustar!
Hey Yaustar. Good job helping out with this! I'm sure a lot of people here will pick up from this nice example. Anyways, I took a look at it and put the standing animation sprites in place for you....they looked a bit off at first, but I fixed them. Hope this'll help.
Cheers for that. Much appreciated.
Hey no problem.... BTW, I think I got his jump sprites somewhere in my HD... I can get em set up for this example if you'd like to put the code in it. Just lemme know, K?
Updated again.
Very good work. I have yet to download it yet, but I don't understand how come he code is soo long for animation? Did you make it into a game almost?
If you haven't downloaded it yet, how do you know the code is so long?. If you are takling about the time between updates then its because I was working on my other project (see GP2X section for Dance2x) and I felt I didn't need to update this snippet. Then I got bored :P
As well as the sprite/animation system, there is some code to manage the different states that an object can be in (eg walking, standing, attacking). So there is a small finite state machine there to deal with that.
I also have other little code snippets that you may like:
http://www.dcemu.co.uk/vbulletin/showthread.php?t=28540
http://www.dcemu.co.uk/vbulletin/showthread.php?t=29190
well, by looking at the dl size ( I know that includes images, but it still would appear long)...
Its about 300-400 lines of code including whitespaces and comments.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks