Page 1 of 1

animation stick?

PostPosted: Sat Jul 28, 2007 1:52 pm
by pavel329
this is sort of like the moon walk.
Whenever i make my character slash i want him to change back from it.so i made it where animation finish>slash>change animation>stand.


but when he runs and slashes it goes back to stand.and he slides standing.

how do i make it where he runs after he slashes while running?

PostPosted: Sat Jul 28, 2007 5:49 pm
by Sgt. Sparky
remove that animation finish event and instead put:
animation finish->slashright->script editor->
Code: Select all
char*key = GetKeyState();
if(key[KEY_RIGHT] == 1)ChangeAnimation("Event Actor", "Run_Right", FORWARD);
if(key[KEY_RIGHT] == 0 && key[KEY_LEFT] == 0)ChangeAnimation("Event Actor", "Stand_Right", FORWARD);
if(key[KEY_LEFT] == 1)ChangeAnimation("Event Actor", "Run_Left", FORWARD);

and on animation finish->slashleft->script editor->
Code: Select all
char*key = GetKeyState();
if(key[KEY_RIGHT] == 1)ChangeAnimation("Event Actor", "Run_Right", FORWARD);
if(key[KEY_RIGHT] == 0 && key[KEY_LEFT] == 0)ChangeAnimation("Event Actor", "Stand_Left", FORWARD);
if(key[KEY_LEFT] == 1)ChangeAnimation("Event Actor", "Run_Left", FORWARD);

:D
I hope that helps, if there are any problems let me know. :D