i have 2 question plz
how can i make my player shoot to enemy
&
how i make a bonus
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//
Users browsing this forum: No registered users and 1 guest