How do I link my monsters to an array

Get help using Construct 2

Post » Tue Aug 26, 2014 7:53 pm

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: ... 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.

Posts: 31
Reputation: 1,267

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 5 guests