Animationtool finished (well, almost finished!)

by Niels Brouwers 17. April 2011 03:25

I was watching a documentary about SKA Studios the other day and noticed they've got a great custom tool to edit animations for their games. As I was struggling with the animations for my game as well, I figured something like what they have would be a solution for me.

You see, memory is a constraint in XBLIG games in the sense that once your game grows over 50Mb you are unable to price it at the lowest price point. Also, being an oldschool programmer I tend to use the most efficient code and memory usage whenever possible. So, if you have a player animation, and he is running then you might just draw a lot of frames for his animation (=lots of memory consumption) OR you get smart and draw his legs moving and leave everything above the chest unchanged (=saves nearly half of the memory required). If you decide to chop the chest off from the lower part of the body you need to take care how these two parts match up against eachother. Typically, the one is draw with an offset to the other. Other things like a glow could also be done in a separate sprite and drawn as an overlay to the main sprite. So you have all these frames to manage for a single character and doing this in-game gets tedious quickly, you know: adjust the offset in code, run the game, move the offset another pixel to the left etc.

So that's why I build this animationtool for my game! It easily lets me handle many frames for one object and adjust the offset in real-time, plays the animation to see how it is going to look etc. Also, by having this tool, it kind of forces me to have the animation completely data-driven and the game-engine just be that: a game engine! It's just good programming architecture, I like that! 

Right now, one small thing is missing: a save button...

 

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Follow me on Twitter

18. May 13:59
Just finished some coding for my animation app using marmalade SDK. It should be completed soon! #ios

7. May 19:43
It is amazing how adding just a couple of weapon-upgrades increases the fun tenfold in my game!

21. April 21:22
Todays activities include a bit of tombraiding, hanging out with some real skeletons and grocery shopping at the market.

21. April 21:08
@socialgamepro visual studio kills all other IDE's I use it with Marmalade for all devices that are relevant.

15. April 10:51
#Fez kinda reminds me of #Nebulus, except the fez, see http://t.co/2XMGwYjT which is cool!

www.twitter.com/nielsbrouwers