H
Huy
Guest
Hi,
In my game, whenever the day changes, every instance( human) 'hp' variable goes down by 1. Once hp hits 0 then the instance is destroyed.
These instances are created from the same object at different times. BUT when the game runs and the day changes, only one instance's hp, the oldest one, goes down. After its hp hits 0 and gets destroyed, then the next oldest instance starts counting down, and then repeat.
When i duplicated the object and created 2 instances of 2 different but identical object, it works fine.
how do i make it so all the instances of the same object run together instead of one at a time?
I'm mostly using drag and drop feature.
In my game, whenever the day changes, every instance( human) 'hp' variable goes down by 1. Once hp hits 0 then the instance is destroyed.
These instances are created from the same object at different times. BUT when the game runs and the day changes, only one instance's hp, the oldest one, goes down. After its hp hits 0 and gets destroyed, then the next oldest instance starts counting down, and then repeat.
When i duplicated the object and created 2 instances of 2 different but identical object, it works fine.
how do i make it so all the instances of the same object run together instead of one at a time?
I'm mostly using drag and drop feature.