Hi Again
Looking to code the following scores into a class called 'die'.
Basically i'm recreating space invaders and everytime a alien dies the relevant score needs to be added up. I currently have this as my points:
public enum gamescore
{
Martian = 10,
Vesuvian = 20,
Mercurian = 30,
Meteor = 50,
MotherShip = 100,
Destroyer = 200
}
Im looking to code it into the .base so it reflects across the 6 classes. The method I want it to work within is as follows:
public virtual void Die()
{
boundary.Controls.Remove(picture); //removes picture when they die
}
Could any of you give help me with the code required to add to the 'Die' method?
Cheers
P