`setup level, player, and camera
setuplevel()
setupplayer()
setupcamera()
setupall()
`----------------main loop--------------------
do
if leftkey()=1 then move object 1, -1
if rightkey()=1 then move object 1, 1
if spacekey()=1 and playergrav#=0.0 then playergrav#=2.0
posx#=object position x(1)
posy#=object position y(1)
posz#=object position z(1)
playergrav#=playergrav#-0.01
posy#=posy#+playergrav#
if object collision(1,0)>0
playergrav#=0.0
endif
position object 1,posx#,posy#,posz#
sync
loop
`---------------------------------------------
`----------------functions--------------------
`---------------------------------------------
function setuplevel()
make object box 1000, 10, 2, 5
set object collision on 1000
` set object collision to boxes 1000
make object collision box 1000, -5, -1, -2.5, 5, 1, 2.5, 1
endfunction
`---------------------------------------------
function setupplayer()
make object sphere 1, 1
position object 1, 0, 5, 0
set object collision on 1
` set object collision to spheres 1
make object collision box 1000, -1, -1, -1, 1, 1, 1, 1
yrotate object 1, 90
endfunction
`---------------------------------------------
function setupcamera()
position camera 0, 10, -20
endfunction
`---------------------------------------------
function setupall()
set global collision on
endfunction
`---------------------------------------------
Ok, i tried your second idea, and I CON"T FIGURE IT OUT!!!! someone please help me.....
http://www.geocities.com/tylerc1324