How do I set a sprite as an active entity

Get help using Construct 2

Post » Mon May 26, 2014 1:07 am

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.

Image

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?
B
7
S
2
Posts: 32
Reputation: 541

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 61 guests