put the code in a different order...
hide mouse
sync rate 80
set display mode 1024,768,32
make object cylinder 1,40
xrotate object 1,240
lock object on 1
position object 1,3,-1,2
disable object zdepth 1
color object 1,rgb(255,0,0)
load object "lev/lev.x",2
position object 1,1000,5,1000
position camera 0,600,900,500
set camera range 2,10000
set object transparency 2,4
sc_setupobject 1,1,2
sc_setupobject 2,2,2
make memblock 1,1000
sc_SetObjectCollisionOn 1
sc_SetObjectCollisionOn 2
rem control player movement
do
rem mouse
rotate camera camera angle x(0)+(mousemovey()/2.0),camera angle y(0)+(mousemovex()/2.0),0
cx#=camera angle x(0) : cy#=camera angle y(0)
rem movement-keyboard
move camera upkey()-downkey()
sc_updateobject 1
sc_updateobject 2
sc_getObjectHit()=1
Position object 2,sc_getCollisionBounceX() ,object position y(2) ,object position z(2)
Position object 2,object position x(2) ,sc_getCollisionBounceY() ,object position z(2)
Position object 1,object position x(1) ,object position y(1) ,sc_getCollisionBounceZ()
loop
wait key
end
I haven't had time to test your code but as far as I can see ther might be a few little syntax faults... just presuming... as a hint I use the free V2.02 collision dll... not the very latest cos it has less possibility