How do I set a sprite as an active entity

0 favourites
  • 1 posts
From the Asset Store
A whole set you need to create a gorgeous winter 2d game
  • Hello,

    I am trying to figure out the best way to do this.

    In my game you have one monster to attack at a time. What I would like is for this monster to become active.

    When active the game will access it's instanced variables and do stuff such as take it's variable attackPower from the players health.

    Right now this is how I am diferentiating between what mob should become active but there has to be a better way than this. Such as at the 1 second tick I would rather just have one action that is like every 1 second take active.attackPower from playerHealth.

    If there was a way to set an active monster it would be so much easier to do a lot of things such as set the enemy health bar in just one event instead of all of them.

    In another language I could make a function and just assign a variable to a parameter to it to do all the work.

    Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)