The situation is as follows: I want all creatures to be removed after a player loses. In theory I can write a function that records the id of all spawned creatures, but maybe there is a simpler way to do it ? I have in mind an internal function in the defold itself that keeps track of all spawned go.
Note: Restarting the level is not an option due to code peculiarities.