What's wrong with it? I personally think it has something to do with the "position object 6,x#,y#,z#" command, though I don't know how to fix it.. Please help
`making the level
make object box 1,800,5,800
make object box 2,20,20,20 : position object 2,100,0,100
make object box 3,20,50,20 : position object 3,110,0,160
make object box 4,20,90,20 : position object 4,150,0,200
make object box 5,60,40,50 : position object 4,20,10,20
`make player
make object box 6,15,15,15 : position object 6,-50,100,-50
`remember values
x#=object position x(6)
y#=object position y(6)
z#=object position z(6)
`values
g#=0.5
y_vel#=0
`sync on
sync on
`collision on
set object collision on 6
`start loop
do
`jumping
if shiftkey()=1 then y_vel#=y_vel+5
`main collision
if object collision(6,0)>0
y_vel#=0
position object 6,x#,y#,z#
endif
y#=y#+y_vel#
y_vel#=y_vel#-g#
`controls
if upkey()=1
move object 6,4
position object 6,x#,y#,z#
endif
if downkey()=1
move object 6,-4
position object 6,x#,y#,z#
endif
if leftkey()=1
angle#=wrapvalue(angle#-6)
position object 6,x#,y#,z#
endif
if rightkey()=1
angle#=wrapvalue(angle#+6)
position object 6,x#,y#,z#
endif
if upkey()=0 and downkey()=0 and leftkey()=0 and rightkey()=0
position object 6,x#,y#,z#
endif
`screen refresh
sync
`position the camera and object
position camera x#,y#+40,z#-150
Me vs. The World...