thanks for the help though im still confused. damn my lack of knowledge. anyhoo heres my code:
Rem Project: Breakout
Rem Created: 06/04/04 15:18:52
Rem ***** Main Source File *****
sync on
sync rate 30
Rem The Player
make object box 1,30,10,10
position object 1,0,0,0
set object collision to boxes 1
Rem The Left And Right And Back Walls
make object box 2,10,10,130
position object 2,-60,0,60
set object collision to boxes 2
make object box 3,10,10,130
position object 3,60,0,60
set object collision to boxes 3
make object box 4,130,10,10
position object 4,0,0,120
set object collision to boxes 4
make object sphere 5,5
position object 5,0,0,30
xdirection=1
zdirection=1
do
if xdirection=1 then move object left 5,3 else move object right 5,3
if zdirection=1 then move object 5,3 else move object 5,-3
if leftkey()=1 then move object left 1,2
if rightkey()=1 then move object right 1,2
if object collision (1,0)>0 then position object 1,x#,0,z#
if object collision (5,2)>0 then xdirection=0
if object collision (5,3)>0 then xdirection=1
if object collision (5,4)>0 then zdirection=0
if object collision (5,1)>0 then zdirection=1
x#= object position x(1)
z#=object position z(1)
position camera 0,40,-70
point camera 0,0,0
sync
loop
thanks in advance