December 8th, 2007, 03:03 PM
The best way to...
I'm making an RPG and would like to know what the best way to change equipment and and alternate between "running and walking" and "sword in sleeve and sword out of sleeve" along with some other movments.
This is what im thinking of right now - I have a model which is a basic animation of a man walking and when the key R is pressed a new model will load with a new animation of the man running. And the same priniples apply to other movements.
Like this -
R = Run
A = Arm (draw sword)
D = Dis Arm
Is this good, or is there a better way?
KeyboardState keys = Keyboard.GetState();
myModel = content.Load<Model>( "Run" );
myModel = content.Load<Model>( "Walk" );
myModel = content.Load<Model>( "Arm" );
myModel = content.Load<Model>( "DisArm" );
December 12th, 2007, 02:00 AM
Does it work? If so then ya it's fine , IMO the best way is to build most of it first then do refining after, as you build you'll find if something works well or not.