how can i make my player shoot enemy
Posted: Wed Aug 15, 2007 8:50 am
i have 2 question plz
how can i make my player shoot to enemy
&
how i make a bonus
how can i make my player shoot to enemy
&
how i make a bonus
Game Editor discussion board
http://game-editor.com/forum/
if (ammo.textNumber >= 1) //to only shoot when u have ammo//
if (animindex == getAnimIndex("guy walk r") ||
animindex == getAnimIndex("guy stop r"))
{
CreateActor("bullet", "BULLET", "(none)", "bullet r", 55, 0, false);
ammo.textNumber -= 1;
}
else if (animindex == getAnimIndex("guy walk l") ||
animindex == getAnimIndex("guy stop l"))
{
CreateActor("bullet", "BULLET", "(none)", "bullet l", 30, 0, false);
ammox.textNumber -= 1;
}
//to create the bullet on either side//