Hello,
should i group i.e. enemy objects to a familiy like i would do with the event editor?
Right now i extend the ISpriteInstance to add specific variables and methods directly to an enemy object.
class EnemyInstance extends ISpriteInstance {
constructor(){
super()
this.name = "Zombie";
this.health = 50;
this.direction = "";
}
Move(){...
}
When i have lots of different enemy objects, and every enemy should have a Move() method, i think it would be better to extend a "Family" class, so every child of the familiy will inherit the Move() method.
Is this possible?
Thank you