Jump to content
Posted 15 October 2011 - 04:27 PM
Posted 15 October 2011 - 05:23 PM
I've been toying around with the idea of a 2D game for a Windows game based on the XNA framework. Sprites, I can handle. But what I'm looking for is a way to animate an object (namely a person) that has multiple layers (foot, leggs, arms, etc.) and I would like to animate each individual part. I've poked around for 30 minutes now unable to find anything as to how to do this (i.e. change rotation, position, anchored to, etc) and I was wondering if anyone had a good idea how to do this and/or where I can find a tut on this.
Try and be simple for my sake, I'm not very familiar with XNA framework and C# is relatively new to me.
Thanks in advance!
We are now on Tumblr, so please come and check out our site!
Posted 15 October 2011 - 05:40 PM
Posted 15 October 2011 - 07:29 PM
#define BONE_ABSOLUTE_ANGLE 0x01
Posted 15 October 2011 - 08:57 PM
@AmzBee quick question, how do i store the following line of code from the tutorial you showed me:#define BONE_ABSOLUTE_ANGLE 0x01
I think Char, but I'm not sure.I hating translating between C++ and C#
*Edit* I officialy don't know which type to use so that I may easily edit it and read it trhough the program.
*Edit 2* float i think would work. Confirm?
(I am new to this, sorry)
@Nypyren, looking at yours shortly. Thanks
You can define a symbol, but you cannot assign a value to a symbol
Posted 15 October 2011 - 10:04 PM
Posted 17 October 2011 - 05:52 PM
Oh...a hex value can be stored in an int, unsigned int, long, unsigned long.
As for using it as a global constant, it seems the accepted method (in c#) is to create a static class with your constants in it and declare them public const. An article for reference.