Thankyou for your help, it looks as though your code should work but it still doesnt work, I now have it so the cubes have a more random position(I put a wait command in), but like I said they still dont start off in the court. Please could you look over it again and see if there is something Ive missed. Thankyou, much appreciated.
REM Project: TouchMeTouchMe
REM Created: 23/08/2004 18:23:16
REM
REM ***** Main Source File *****
REM
Sync rate 60
Make object sphere 1,6:color object 1,rgb(255,0,0)
Make object box 2,126,1,126:color object 2,rgb(0,128,0)
Position object 1,-40,3,40
Make object box 3,126,5,1:color object 3,rgb(128,56,0)
Make object box 4,126,5,1:color object 4,rgb(128,56,0)
Make object box 5,1,5,126:color object 5,rgb(128,56,0)
Make object box 6,1,5,126:color object 6,rgb(128,56,0)
Position object 3,0,0,63
Position object 4,0,0,-63
position object 5,63,0,0
position object 6,-63,0,0
For x = 1 to 6
set object collision to boxes x
next x
randomize timer()
for t = 7 to 12
make object cube t,5
set object collision to boxes t
position object t,rnd(252)-125,3,rnd(125)
randomize timer()
wait 100
next t
score#=0
Do
yang# = object angle y(1)
xpos# = object position x(1)
zpos# = object position z(1)
xpos7#= object position x(7)
zpos7#= object position z(7)
xpos8#= object position x(8)
zpos8#= object position z(8)
xpos9#= object position x(9)
zpos9#= object position z(9)
xpos10#= object position x(10)
zpos10#= object position z(10)
xpos11#= object position x(11)
zpos11#= object position z(11)
xpos12#= object position x(12)
zpos12#= object position z(12)
If upkey()=1 then move object 1,1
If leftkey()=1 then yrotate object 1,wrapvalue(yang#-5)
If rightkey()=1 then yrotate object 1,wrapvalue(yang#+5)
for r = 7 to 12
randomize timer()
yrotate object r,wrapvalue(object angle y(r)- rnd(360))
randomize timer()
move object r,2
next r
If object collision(7,3) then position object 7,xpos7#,3,zpos7#-0.5
If object collision(8,3) then position object 8,xpos8#,3,zpos8#-0.5
If object collision(9,3) then position object 9,xpos9#,3,zpos9#-0.5
If object collision(10,3) then position object 10,xpos10#,3,zpos10#-0.5
If object collision(11,3) then position object 11,xpos11#,3,zpos11#-0.5
If object collision(12,3) then position object 12,xpos12#,3,zpos12#-0.5
If object collision(7,4) then position object 7,xpos7#,3,zpos7#+0.5
If object collision(8,4) then position object 8,xpos8#,3,zpos8#+0.5
If object collision(9,4) then position object 9,xpos9#,3,zpos9#+0.5
If object collision(10,4) then position object 10,xpos10#,3,zpos10#+0.5
If object collision(11,4) then position object 11,xpos11#,3,zpos11#+0.5
If object collision(12,4) then position object 12,xpos12#,3,zpos12#+0.5
If object collision(7,5) then position object 7,xpos7#-0.5,3,zpos7#
If object collision(8,5) then position object 8,xpos7#-0.5,3,zpos8#
If object collision(9,5) then position object 9,xpos7#-0.5,3,zpos9#
If object collision(10,5) then position object 10,xpos10#-0.5,3,zpos10#
If object collision(11,5) then position object 11,xpos11#-0.5,3,zpos11#
If object collision(12,5) then position object 12,xpos12#-0.5,3,zpos12#
If object collision(7,6) then position object 7,xpos7#+0.5,3,zpos7#
If object collision(8,6) then position object 8,xpos8#+0.5,3,zpos8#
If object collision(9,6) then position object 9,xpos9#+0.5,3,zpos9#
If object collision(10,6) then position object 10,xpos10#+0.5,3,zpos10#
If object collision(11,6) then position object 11,xpos11#+0.5,3,zpos11#
If object collision(12,6) then position object 12,xpos12#+0.5,3,zpos12#
If object collision(1,3) then position object 1,xpos#,3,zpos#-0.5
If object collision(1,4) then position object 1,xpos#,3,zpos#+0.5
If object collision(1,5) then position object 1,xpos#-0.5,3,zpos#
If object collision(1,6) then position object 1,xpos#+0.5,3,zpos#
For a = 7 to 12
If object collision(1,a) then hide object a
next a
xpos# = object position x(1)
zpos# = object position z(1)
camz# = Newzvalue(zpos#,yang#-180,50)
camx# = Newxvalue(xpos#,yang#-180,50)
Position camera camx#,30,camz#
Point camera xpos#,3,zpos#
Sync
Loop
Daniel.
*For every problem you come across you gain something from correcting it, I hope.