That can be done as well with a single object, if we prepare the object house in a 3D editor.You can download the example I made for this example. The method works adding several bones to our house in order to scale them to 0,0,0 to make it disappear depending on some condition.In the example below, you destroy the object little by little just pressing numbers from 1 to 8.
I hope it can help somehow.
autocam off
sync on
load image "test.bmp",1
load object "cajj.x",1
texture object 1,1:scale object texture 1,5,5
position camera -150,150,-150
point camera 0,0,0
rem para ver cuantos limb tiene el objeto
for i= 1 to 500
if limb exist (1,i)
lm=lm+1
endif
next i
do
set cursor 5,10:print "PRESS FROM 1 TO 8"
REM set cursor 5,5:print lm
if inkey$()="1" then scale limb 1,2,0,0,0
if inkey$()="2" then scale limb 1,6,0,0,0
if inkey$()="3" then scale limb 1,7,0,0,0
if inkey$()="4" then scale limb 1,3,0,0,0:scale limb 1,23,0,0,0
if inkey$()="5" then scale limb 1,14,0,0,0
if inkey$()="6" then scale limb 1,15,0,0,0
if inkey$()="7" then scale limb 1,30,0,0,0
if inkey$()="8" then scale limb 1,31,0,0,0
control camera using arrowkeys 0,0.9,0.9
a#=wrapvalue(a#+mousemovex()/2)
cam#=wrapvalue(cam#+mousemovey()/2)
rotate camera cam#,a#,0
sync
loop
Cheers.
I'm not a grumpy grandpa
