Re: Diffrent Event from Same Key
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Ok. My game is a side scrolling game. As for directions, you use the arrows to move left and right. to attack just turn the direction you want to attack and attack. ![Mr. Green :mrgreen:](http://game-editor.com/forum/images/smilies/icon_mrgreen.gif)
![Mr. Green :mrgreen:](http://game-editor.com/forum/images/smilies/icon_mrgreen.gif)
Game Editor discussion board
http://game-editor.com/forum/
if (ready==1)
{
//put code here
}
if (sword==0)
{
sword=1;
ChangeAnimation("Event Actor", "standsword", FORWARD);
}
if (sword==1)
{
sword=0;
ChangeAnimation("Event Actor", "stand", FORWARD);
}
if (ready==1)
{
if (sword==0)
{
sword=1;
ready=0;
ChangeAnimation("Event Actor", "swordanim", FORWARD);
}
if (sword==1)
{
sword=0;
ready=0;
ChangeAnimation("Event Actor", "standanim", FORWARD);
}
}