Ok guys I have a serious problem.
I have to come out with my demo within the next 6 days and I havent gotten this part of the proggramming finished.
You all know how when playing mega man he is facing like this.
Well when he shoots he is holding his gun out. WTF how do I do that?
Controlls
My controlls are
W = stand upright
S = sitting
D = walk right
A = walk left
S hold + D = crawl right
S hold + A = crawl left
Example of problem.
Mega man runs to the right. You press the shoot button while running and he shoots but he shoots to the right and when you hit the fire key he instantly changes animations to holding his gun out.
Its the same thing when he is moving left. Fire button changes the animation from just running with fists to fireing his gun. Also, if you are stopped and pointing left, you hit the fire key and it shoots left.
If facing right with the right animation, you press fire and he shoots right.
THIS is where I am having trouble.
My characters name is Vash. I have the walking left and right animations ready. I have a right and left animation with him walking with his arm and gun pointing out.
So far you looked over my current controlls. I need to make it to where when you shoot with the [ctrl] key, he changes his animation to fighting mode instead of walking, but only for a few seconds. This is imparative to my game.
Look at it like this. Holding D walking right, you hit the [ctrl] key to fire.
Vash should be walking right and then instantly be holding out his gun IN THE RIGHT DIRECTION. You now see Vash shoot from his gunwhile your walking.
Projectile released. Now if you STOP WALKING he is suppose to stay in fighting mode.
As in this case the ChangeAnimationDirection he would be facing right in fighting mode. When he was walking (after fire keys been pressed) he would be holding out his gun and when you let go of the D key (or wich ever way you were going) the animation would change from Fighting mode-walking to fighting mode-standing still.
Problem
The problem is I only want the fighting mode to be there for a few seconds after firing and then auto switch back to normal waking mode.
Just like mega man.
The Basis of my problem is to get the normal stance to change to fighting stance for a few seconds and then switch back.
The fighting stance is activated by the [ctrl] key being pressed to fire.
Its basicaly changing the WSAD animations for a few seconds and then switching back.
Im sorry for the question being so darn complicating.