daniloaguiarb's Forum Posts

  • 1 posts
  • Hello guys,

    First of all, sorry about my english. I know it's very poor but i hope that you can understand my problem.

    Well, i'm actually working on a RPG project, but it's a little bit different from the usual, like action RPG or JRPG.

    So i'm thinking to use a lot of enemies with different sprites and stats, so i chose to use the "family" function, because using the family function i can create instances/variables for all my enemies, for example: Name, Strenght, Defense, Magic Attack, HP... And all of these variables are linked to enemy objects.

    Now i'm trying to "spawn" a particular enemy from this family, however i don't know how to do this action... Is there any way to do this? For example:

    Family: Enemies

    Member: 1) Zombie

    Member: 2) Ghost

    Member: 3) Wolf

    And i want to spawn a Ghost using the family's instances.

    How can i do this?

    When i try to summon an enemy the result is always random.

    Thank you.

    Danilo.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 1 posts