do
text 0,0,"X: "+str$(ox#)
text 0,20,"Z: "+str$(oz#)
gosub move
gosub collision
ox#=object position x(100)
oy#=object position y(100)
oz#=object position z(100)
if ox#=-30 then gosub raise1
position camera ox#,40,oz#
yrotate object 100,angle#
yrotate object 101,angle#
sync
loop
the above code is a loop from a driving game I'm making, and at the end of the level, I want the camera to point back at the level to show a wall being raised (gosub raise1) when the player object reaches a certain position (in this case, -30 on the x axis). however, when the player reaches this position, they are able to drive past it without anything happening with the camera or the wall that is supposed to be raised. I know the raising loop works, as it works with an earlier gosub. Is there something wrong with this loop?
"Fight the good fight of faith,
Lay hold on eternal life"
-1 Timothy 6:12