I've made code for what i mean. You have to download the media aswell.
Rem Project: Wall thingy
Rem Created: 21/07/2005 05:04:42
Rem Created by BiggAdd
Rem ***** Main Source File *****
sync on
sync rate 60
load image "1.jpg",1
load image "2.jpg",2
load object "1.x",1
load object "2.x",2
texture object 1,1
texture object 2,2
backdrop on
color backdrop 0
position camera 50,60,0
hide mouse
b=50
w=0
m#=3
autocam off
do
circle 320,240,5
y#=camera angle y()
x#=camera angle x()
yrotate camera wrapvalue(mousemoveX()+y#)
xrotate camera wrapvalue(mousemoveY()+x#)
if w=0
if mouseclick()=1
make object sphere b,4
position object b,camera position X(),camera position Y(),camera position Z()
rotate object b,camera angle X(),camera angle Y(),camera angle Z()
inc b
w=20
endif
endif
dec w
if w<0 then w=0
for x=1 to 30
if object exist(b-x)
move object b-x,2
col=object hit(2,b-x)
if col=1 then m=1
endif
next x
if m=1
inc x2,-2
endif
position object 2,x2,0,0
if downkey()=1 then move camera -1
if upkey()=1 then move camera 1
sync
loop
SSDD
Same Sh** Different Day