How do I…
Self-destroy a prefab.
What is the expected result
I have tried several options for prefab self-destroy. Remarkable is adding “eliminate Object” action in the “doStepPostEvents”. This action eliminates the sprite, but does not erease the prefab from memory… so basically it does not eliminates the object. I also tried to create a special action just to do the elimination, but the result is the same. Be it in the object or the scene events, the object is unable to completely eliminate itself: the sprite goes away but the object is not removed from memory.
What is the actual result
Instead of the object self-destroying as expected, only the sprite is destroyed but the memory remains. A work around is to eliminate the prefab directly from the events sheet (basically, not self-destroying it). While there is a workaround for this, I feel this:
- Is a bug considering the eliminate object actually eliminates something, but not everything.
- Should not work this way as I expect my prefab to behave in the same way, independandtly on the scene it is. Obviously, doing a behavior just for this would be very troublesome and not practical / user friendly in my opinion.
Related screenshots
When the condition is embeeded in the object or the extension…
Then the object is not destroyed. Only its sprite.
Notes: “Tiempo” is 0.2 seconds… and even without any condition, the problem remains.