With apologies to sinu here is a demo I threw together of a character walking around with 3D platformer controls:
www.3darteest.com/ninja_test.zip
There's still a fair amount to do to get this working as well as I would like; I still need autocentering, obstacle avoidance, etc. I threw this together because after seeing sinu's work I was curious how hard it was to do. As an experiment I tried a slightly different approach taken by many games where the camera rotates automatically when you move sideways.
There are two control schemes: with keyboard and with joystick (or rather, dual analog stick gamepad as with modern consoles.) You can switch controls by hitting Tab.
Keyboard controls:
arrow keys - move character
Z - jump
X - attack
A & S - rotate camera
Dual analog controls:
left stick - move character
button 1 - jump
button 2 - attack
right stick - rotate camera
Oh, and I used Psionic's ninja for the test character. I had an original character initially but since that belongs to a client I had to throw something in there to replace it before posting.
www.3darteest.com/ninja_test.zip
There's still a fair amount to do to get this working as well as I would like; I still need autocentering, obstacle avoidance, etc. I threw this together because after seeing sinu's work I was curious how hard it was to do. As an experiment I tried a slightly different approach taken by many games where the camera rotates automatically when you move sideways.
There are two control schemes: with keyboard and with joystick (or rather, dual analog stick gamepad as with modern consoles.) You can switch controls by hitting Tab.
Keyboard controls:
arrow keys - move character
Z - jump
X - attack
A & S - rotate camera
Dual analog controls:
left stick - move character
button 1 - jump
button 2 - attack
right stick - rotate camera
Oh, and I used Psionic's ninja for the test character. I had an original character initially but since that belongs to a client I had to throw something in there to replace it before posting.