Weapon Upgrade?
Posted: Sun Apr 26, 2009 7:34 pm
Can anyone tell me how to make an upgrade for my side-scrolling space shooter? I have a lazer set to create actor and I can't get it to change to another.
Also, hi!
Also, hi!
int weapon;
switch(weapon)
{
case 0: // no weapon upgrades
CreateActor("laser", "laser", "(none)", "(none)", 0, 0, false);
break;
case 1: // weapon upgrade 1
CreateActor("laserV2", "laserV2", "(none)", "(none)", 0, 0, false);
break;
}
weapon++;