Types Won't Delete!!!

Blitz3D Forums/Blitz3D Beginners Area/Types Won't Delete!!!

Crazy4Code(Posted 2005) [#1]
When the player presses the spacebar, the ship fires a laser. the lasers are in the type laser. I want them to be deleted after they are a certain amount of space away from the player, but instead, they just stop moving and sit where they were supposed to be deleted. What's going on here?


Crazy4Code(Posted 2005) [#2]
I think I fixed it. I did FreeEntity lasers\entity and then Delete lasers. Are they really gone? I can't see them.


WolRon(Posted 2005) [#3]
Are they really gone?
Sounds like it.

It appears that you are freeing the entities correctly now.
As you've found out, deleting a type that contains an entity handle, doesn't automatically free the entities that the handles point to (nor any other objects that they may point to, such as brushes, textures, banks, fonts, etc.). They have to all be freed manually.