hi, tried that one, it works for the first one, then if i go to the second box, the points keep climbing, and dont stop even if i move away from where the box WAS, i dnt really understand why that is?
here is my first rough copie of the code, any ideas?
make matrix 1,2000,2000,10,10
make object sphere 1,19
sync on
py#=20
pz#=30
px#=50
color backdrop rgb(0,0,0)
rem making the boxes
z#=1.0
y#=20
for n=2 to 51
z#=z#+30
make object box n,5,5,5
position object n,30,y#,z#
set object collision to polygons n
show object n
next n
points#=0
do
sync
oldpx#=px#
oldpz#=pz#
olda#=a#
position object 1,px#,py#,pz#
rem movement
a#=object angle y(1)
if upkey()=1 then move object 1,10
if leftkey()=1 then a#=wrapvalue(a#-8)
if rightkey()=1 then a#=wrapvalue(a#+8)
yrotate object 1,a#
rem camera to follow
px#=object position x(1)
py#=object position y(1)
pz#=object position z(1)
camdist#=50 : camheight#=py#+20 : camfade#=1.5
set camera to follow px#,pyx,pz#,a#,camdist#,camheight#,camfade#,1
rem ______________________________________________collisions________________________
for n=2 to 51
if object collision(n,0)>0
hide object n
points#=points#+1
position object n,30,y#-40,z#
endif
next n
set cursor 100,10
print points#
loop
[edit] just realised, you used "move" fuinction i used position object, the move function you used was the wrong syntax for DBC it just wants and integer then a real so i did the following
for n=2 to 51
if object collision(n,0)>0
hide object n
Move object n,-10000
points#=points#+1
endif
next n
didn't even know that it was a function, cheers m8
[/edit]
abit fatal1ty an8 sli mobo, ati radeon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)