How do I make the following progression system?

Not favoritedFavorited Favorited 0 favourites
  • 8 posts
From the Asset Store
Create complex dialogues with ease with this tool/template!
  • How do I make enemies increase their health depending on the player's level?

    <div style="width:100%;height:0;padding-bottom:56%;position:relative;"><iframe src="https://giphy.com/embed/Qxb9ChNLA40gEroJ9Q" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div><p><a href="https://giphy.com/gifs/Qxb9ChNLA40gEroJ9Q">via GIPHY</a></p>

    example:

    Player level: 1 --- enemy hp = 10

    Player level: 2 --- enemy hp = 20

    Player level: 3 --- enemy hp = 30

    etc

    This was the event I did

  • Each enemy will need an instance variable representing health. When the enemy is spawned, you set its instance variable according to the player's level. Or, if you are increasing the health of existing enemies, you can Add To that instance variable for all enemy instances (if no instance is specified, it should affect all instances).

  • I forgot to mention it, but the enemy already has a variable called HP and starts with 10 health.

    ..how should I start the event?

  • You should add it to line 12, the event that handles leveling up.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Increases the HP of one enemy but not all subsequent ones that appear :C

  • How are the enemies spawned?

    When the enemy is spawned, you set its instance variable according to the player's level.

  • I did it like this for the example...I should put on created enemy --- ?

  • Yes. Add another action to that event, with "enemy" as the object, to set the value of the instance variable.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)