animation stick?

Game Editor comments and discussion.

animation stick?

Postby pavel329 » Sat Jul 28, 2007 1:52 pm

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?
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Sgt. Sparky » Sat Jul 28, 2007 5:49 pm

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
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron