Once again I am in need of assistance!
Here's the thing, here is the concept I want to implement:
When you touch another event or let's just call it a monster, the monster will get hit and it will walk away from you temporarily. After that, it will snap out of it and will chase you again. You can then hit it again after a cooldown. I can manage this easily with switches and such and this only works if there was only ONE monster.
My problem here is, when I add more monsters, they will also receive the same treatment! They will somehow move away too and that's not what I really want. So let me explain this in a very detailed manner.
1. When you walk to the event and touch it, the event will get hit, so it shall walk away. Events that are NOT hit will continue to chase you and try to hurt you.
2. After a certain period of time, the event you hit earlier will snap out of it and continue to chase you.
3. After the cooldown is over, you can hit any other event again, and like Step 1, the ones that are not hit once again chase you and the one hit shall run away from you.
I hope anyone can find a simple solution for this.
Here's the thing, here is the concept I want to implement:
When you touch another event or let's just call it a monster, the monster will get hit and it will walk away from you temporarily. After that, it will snap out of it and will chase you again. You can then hit it again after a cooldown. I can manage this easily with switches and such and this only works if there was only ONE monster.
My problem here is, when I add more monsters, they will also receive the same treatment! They will somehow move away too and that's not what I really want. So let me explain this in a very detailed manner.
1. When you walk to the event and touch it, the event will get hit, so it shall walk away. Events that are NOT hit will continue to chase you and try to hurt you.
2. After a certain period of time, the event you hit earlier will snap out of it and continue to chase you.
3. After the cooldown is over, you can hit any other event again, and like Step 1, the ones that are not hit once again chase you and the one hit shall run away from you.
I hope anyone can find a simple solution for this.