I'm doing a project in my programming class rn, how do I get an actor to spawn after one of the same actor gets destroyed?
In your World subclass act method, get the size of a list of that type object and compare it to the maximum number of those type objects you want in the world. If less than that maximum, spawn one of that type.
I'm doing a project in my programming class rn, how do I get an actor to spawn after one of the same actor gets destroyed?
In your World subclass act method, get the size of a list of that type object and compare it to the maximum number of those type objects you want in the world. If less than that maximum, spawn one of that type.
I honestly do not know. I have no idea what you are working with. Did you try anything? Show some attempted code. Then, I might get an idea.
I have literally nothing, I can't think of anything that would work like that /: , is there no other way to spawn objects like this? It seems like a pretty simple thing to do in programming?