In the PG below, grey boxes move around looking for “food,” which are the yellow boxes.
I’ve been able to create certain game mechanics for individual meshes, but I’m not sure how to apply these to the clones (grey boxes) and instances (yellow boxes).
Each grey box starts with 100 health, and loses it steadily over time (example 10 seconds).
When a grey box and a yellow box collide, that grey box’s health resets to 100, and the yellow food box disappears.
If a grey box does not collide with a yellow box within 10 seconds, the grey box disappears.
Again, I’m not having trouble creating these mechanics for individual meshes (i.e. “box” and “food”), but rather for all the other clones and instances (i.e. “box24” and “food116”).
Any help or suggestions would be greatly appreciated