I am having some trouble with varables.
I have a game were you can only create an actor (the bullet) if you have ammo.
so i have a var. that increases when you collide with an ammo packet and the coding for that looks like this
- ammo = ammo + 30;
then i have the script for shooting... here im totaly lost...
this is what i made
key down
- if (ammo >= 1);
{
CreateActor("Bullet_2", "Bullet_2", "(none)", "(none)", 0, 0, false);
}
but the problem is that when key is down it shoots even if there is no ammo Whats wrong???????