I don't see a problem with the example, it could be some error connected to the logic of your code.
Rem Project: Dark Basic Pro Project
Rem Created: Friday, November 29, 2013
Rem ***** Main Source File *****
SYNC ON
SYNC RATE 60
BACKDROP ON
color backdrop 0
autocam off
position camera 0,100,25,0
rotate camera 0,0,270,0
make object cube 1,50
sc_setupObject 1,0,0
make object cube 2,10
position object 2,0,60,0
sc_setupObject 2,1,0
make object cube 3,20
position object 3,0,80,0
sc_setupObject 3,1,0
do
set cursor 0,15
print "Fps=",screen fps()
move object down 2,1
move object down 3,1
if SC_objectCollision (1,2)
Move object up 2,10
endif
if SC_objectCollision (1,3)
Move object up 3,20
endif
SC_updateObject 1
SC_updateObject 2
SC_updateObject 3
sync
loop
is this what you are looking for?
Coding is My Kung Fu!
And My Kung Fu is better than Yours!