actor animations doesnt change

Talk about making games.

actor animations doesnt change

Postby saabian » 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 :?
User avatar
saabian
 
Posts: 25
Joined: Sat Dec 09, 2006 1:27 pm
Location: Gothenburg => Sweden
Score: 0 Give a positive score

Postby Hedfone » Mon Dec 25, 2006 7:16 pm

simply selecting the animation wont do the trick.
you have to do something like:
on key down: Right -> Change Animation "playermovingright"
on key up: Right -> Change Animation "playerstillright"

do you understand what I mean?? :?
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Troodon » Mon Dec 25, 2006 7:51 pm

The animation bar is like the source of the animations of actor. Like Hedfone said, the animations are loaded from the source only with different events.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest