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?