I was wondering if the following is possible.
I have an array called mob_array
It has 3 instance variables, mob_id, name, hp
I also have a family called mob_family
It also has 3 instance variables, mob_id, name, hp
I then created 3 monsters within the family and gave them all different values
monster 1: mob_id = 1, name = bad guy, hp = 5
monster 2: mob_id = 2 name = slime, hp = 10
monster 3: mob_id = 3 name = goblin, hp = 15
Each member is a sprite with its own animations.
Any idea how I can store each mob into my array properly?
I followed the tutorial for setting up a basic experience system using an array at: https://www.scirra.com/tutorials/720/st ... nce-system and have modified it to keep all my hero stats in one table. But when it comes to adding monsters to a new array like this I dont know where to start.
Thanks