if ( animindex == getAnimIndex("fight animation") )
{
your actions here;
}
if ( animindex == getAnimIndex("fight animation") )
{
destroy actor(collide actor);
}
DestroyActor("Collide Actor");
if ( animindex == getAnimIndex("fight animation"))
{
DestroyActor("Collide Actor");
}
char* key=GetKeyState();
if(key[KEY_(YOUR KEY)])
{
(Your Action);
}
pavel329 wrote:how do i use key down function in script editor?wat i'm trying to do is make it where mario only jumps left if i'm facing or running left.or vice versa.
char*key=GetKeyState();
if(key[KEY_LEFT] == 1)
{
YOUR CODE HERE.;
}
if(key[KEY_RIGHT] == 2)
{
YOUR CODE HERE.;
}
Users browsing this forum: No registered users and 1 guest