EntityParent question

Blitz3D Forums/Blitz3D Programming/EntityParent question

Rob Pearmain(Posted 2003) [#1]
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


_PJ_(Posted 2003) [#2]
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


jhocking(Posted 2003) [#3]
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.