thanks again. Here's what I got;
Object 1 is my character. When I compile (DBPro w/Patch 4)I get an error that says "run time error 7008 - object does not exist line 110" which is the collision detection line.
I'm sure it does not like my syntax, but what am I doing wrong?
Do
....
......
rem check to see if I hit a gem
if object collision(x,1)>0 then score#=score#+1: play sound 8000: hide object x
......
....
Sync
Loop
Rem Level Load Sub
Rem Load/Place gems
for x= 8000 to 8010
load object "./objects/gem.x",x
gxa#=20+rnd(29)+1
gza#=100+rnd(29)+1
height#=51-intersect object(2,gxa#,50,gza#,gxa#,-50,gza#)
position object x,gxa#,height#+3,gza#
next x