Powerup Problem
Posted: Sat Nov 22, 2008 4:22 pm
Hi peeps. I'm making a game in which you can collect powerups to shoot at the enemy. I'm trying to find out how to script the action when a player picks up the power up and he is equipped with machine gun ammo and can shoot a limited amount of bullets.
Ive tried this but i dont know how to correct it:
Collision with powerup icon:
machinefireP1 = 50;
Key Down: (This is what i press to fire the machine gun)
if(machinefireP1 =>0);
CreateActor("ball", "ball", "(none)", "(none)", 0, 0, false);
machinefireP1 = machinefireP1 -1;
Pleez help
Ive tried this but i dont know how to correct it:
Collision with powerup icon:
machinefireP1 = 50;
Key Down: (This is what i press to fire the machine gun)
if(machinefireP1 =>0);
CreateActor("ball", "ball", "(none)", "(none)", 0, 0, false);
machinefireP1 = machinefireP1 -1;
Pleez help