Here's a bigger sample of the code.
rem switches to push
make object box 550,.5,.5,.5
position object 550,11,2,71
color object 550,rgb(100,200,3)
make object box 551,.5,.5,.5
position object 551,16,2,4
color object 551,rgb(100,200,3)
make object box 552,.5,.5,.5
position object 552,13,2,62
color object 552,rgb(100,200,3)
make object box 553,.5,.5,.5
position object 553,81,2,65
color object 553,rgb(100,200,3)
make object box 554,.5,.5,.5
position object 554,85,2,119
color object 554,rgb(100,200,3)
rem blocks
make object box 555,1,5,10
color object 555,rgb(0,0,255)
position object 555,105,0,2
yrotate object 555,90
make object box 556,1,5,10
color object 556,rgb(0,0,255)
position object 556,105,0,4
yrotate object 556,90
make object box 557,1,5,10
color object 557,rgb(0,0,255)
position object 557,105,0,6
yrotate object 557,90
make object box 558,1,5,10
color object 558,rgb(0,0,255)
position object 558,105,0,8
yrotate object 558,90
make object box 559,1,5,10
color object 559,rgb(0,0,255)
position object 559,105,0,10
yrotate object 559,90
rem collision
set object collision to boxes 2
rem main loop
do
rem activate switches
if object collision (1,550)>0
hide object 550
delete object 555
center text 320,100,"BARRIER ONE DEACTIVATED"
wait 500
endif
if object collision (1,551)>0
hide object 551
delete object 556
center text 320,100,"BARRIER TWO DEACTIVATED"
endif
if object collision (1,552)>0
hide object 552
delete object 557
center text 320,100,"BARRIER THREE DEACTIVATED"
endif
if object collision (1,553)>0
hide object 553
delete object 558
center text 320,100,"BARRIER FOUR DEACTIVATED"
endif
if object collision (1,554)>0
hide object 554
delete object 559
center text 320,100,"BARRIER FIVE DEACTIVATED"
endif
Objects 550-554 are switches to press, and objects 555-559 are the barriers to be deleted. However, when I touch the switches, nothing happens.