This works good for your first post.
sync on :sync rate 60
autocam off
LOAD IMAGE "mediasand.bmp",1
MAKE MATRIX 2,50,50,6,6
RANDOMIZE MATRIX 2,6
PREPARE MATRIX TEXTURE 2,1,5,5
rem MAKE CAMERA 1
POSITION CAMERA 24,10,26
AUTOMATIC CAMERA COLLISION 0,2,1
MAKE OBJECT CUBE 6,10
POSITION OBJECT 6,10,10,10
do
Ground# = (GET GROUND HEIGHT(2, camera position x(), camera position z()))+2
position camera camera position x(),camera position y()-0.1,camera position z()
if camera position y() < Ground# then position camera camera position x(),Ground#,camera position z()
CONTROL CAMERA USING ARROWKEYS 0,.5,2.5
sync
loop
end
I always use autocam off. And sync on: sync rate 60 lets you control the frame rate to 60 frames per second. Just remember to put a sync at the bottom of your loop.
The second problem is caused by using auto collision. It is a non-sliding collision when you hit it it stops you. That is why I never use auto collision. I bought nuclear glory collision for $15. But there are work arounds for the automatic collision not sliding. I am too sleepy now though. Good luck
"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full