actor animations doesnt change
Posted: Mon Dec 25, 2006 6:27 pm
HI,
I dont know how to make my actors animations changes by itself in "game mode" wile controling the actor. i have watch the turorials but still does not get it work.
This is what should happens: in game mode. i press right arrow, the animation of actor moving right will be shown. i relise the button, the animation of actor standing still/stop to the right will be shown. same thing to the left. i press the lower arrow and the animation of actor crouch right will be shown.
This is what happens: i press game mode. the animation that last was shoosen in the actor control (the animation bar) is alwas shown even if the actor is moving right or left (animations doesnt change, its the same animation all the time). nothing happens if i press the lower arrow.
This is what i have done so far:
Add actor, actor control
I add all my animation (playermoveleft, playermoveright, playerstopleft, playerstopright, playercrouchright, playercrouchleft)
I choose the "playermoveright" animation in the animation bar. add events, key down, i press the right arrow, add, script editor, i write x = x + 5; ,add, immidate.
then i do the same thing with the "playermoveleft" animation but i press the left arrow and in script editor i write x = x - 5;
Then i choose the "playerstopright" animation, doing the same things as before but instead of "key down" i select "key up" and press the right arrow. in script i write x = x + 0;
Then i do the same thing with the "playersstopleft" animation.
Then i do the same thing as before with the "playercrouchright" anomation, i select key up an then i select "all buttons pressed in order" and then i press the right arrow and then the lower arrow.
in script editor i write x = x + 0;
Doing the same thing with the "playercroucheft" animation but press the left arrow and write x = x - 0;
Thats how i do, what is wrong? why doesnt it work??
Need help please
I dont know how to make my actors animations changes by itself in "game mode" wile controling the actor. i have watch the turorials but still does not get it work.
This is what should happens: in game mode. i press right arrow, the animation of actor moving right will be shown. i relise the button, the animation of actor standing still/stop to the right will be shown. same thing to the left. i press the lower arrow and the animation of actor crouch right will be shown.
This is what happens: i press game mode. the animation that last was shoosen in the actor control (the animation bar) is alwas shown even if the actor is moving right or left (animations doesnt change, its the same animation all the time). nothing happens if i press the lower arrow.
This is what i have done so far:
Add actor, actor control
I add all my animation (playermoveleft, playermoveright, playerstopleft, playerstopright, playercrouchright, playercrouchleft)
I choose the "playermoveright" animation in the animation bar. add events, key down, i press the right arrow, add, script editor, i write x = x + 5; ,add, immidate.
then i do the same thing with the "playermoveleft" animation but i press the left arrow and in script editor i write x = x - 5;
Then i choose the "playerstopright" animation, doing the same things as before but instead of "key down" i select "key up" and press the right arrow. in script i write x = x + 0;
Then i do the same thing with the "playersstopleft" animation.
Then i do the same thing as before with the "playercrouchright" anomation, i select key up an then i select "all buttons pressed in order" and then i press the right arrow and then the lower arrow.
in script editor i write x = x + 0;
Doing the same thing with the "playercroucheft" animation but press the left arrow and write x = x - 0;
Thats how i do, what is wrong? why doesnt it work??
Need help please