I have been successfully using types for some time now, but would like some help with this if possible.
Assume I create 10 "things" using types
EASY
I then want to apply common parameters to all types, run,jump etc
EASY
But suppose I want to shoot each type 4 times before it disappears??
Well I shoot it 4 times and it disappears, I shoot it 3 times and it does not disappear, but the next type I shoot dies after 1 shot, 3 + 1 = 4
Is there a way to keep track of things like this for each type ?
Assume I create 10 "things" using types
EASY
I then want to apply common parameters to all types, run,jump etc
EASY
But suppose I want to shoot each type 4 times before it disappears??
Well I shoot it 4 times and it disappears, I shoot it 3 times and it does not disappear, but the next type I shoot dies after 1 shot, 3 + 1 = 4
Is there a way to keep track of things like this for each type ?