How can I put and
keep the player on the ground.
Question 2: How can I add gravity to the player?
set display mode 1024, 768, 32
hide mouse
sync on
sync rate 60
load image "BackGrey.png",1
make object cube 1,1
color object 1,rgb(200,0,0)
make object plain 2,15,15
pitch object down 2,-90
texture object 2,1
set camera range 0,0.1,1000
position camera 0,0,5,-12
point camera 0,0,0,0
do
aY#=object angle y(1)
if upkey()=1 then move object 1,0.1
if downkey()=1 then move object 1,-0.1
if leftkey()=1 then aY#=wrapvalue(aY#-3)
if rightkey()=1 then aY#=wrapvalue(aY#+3)
yrotate object 1,aY#
sync
loop