EntityParent question
Blitz3D Forums/Blitz3D Programming/EntityParent question
| ||
When I create create all my entitys etc, i have to free and delete them. I heard somewhere, that if you delete a parent entity it automatically clears up the memory for its children. If I create a PIVOT called "Level", and made all the other game entitys childen, and just deleted the pivot, would it clear up all the textures, memory etc Cheers |
| ||
why not try a test with something like the following... Pivot=CreatePivot() Dim Cubes(10) For f=1 to 10 Cubes(f)=CreateCube(Pivot) Next FreeEntity Pivot |
| ||
Your specific wording of "clears up the memory" threw me. If you use FreeEntity on an object all of it's child objects are freed too. |