I think it is the collision that is not working right here is the code
REM Project: adventure game
REM Created: 2/7/2008 8:46:10 PM
REM
REM ***** Main Source File *****
REM
set display mode 1280, 1024, 32
MAKE OBJECT PLAIN 2,100,100
xROTATE OBJECT 2,90
load object "penguin.x",1
SET OBJECT COLLISION ON 1
if OBJECT COLLISION (1,2)=1
jump#=1
else
jump#=0
endif
if OBJECT COLLISION (1,2)=1
grav#=0
else
grav#=1
endif
do
if upkey()=1
speed# = 0.1
endif
if downkey()=1
speed# = -0.1
endif
if leftkey()=1
YRotate Object 1,WrapValue(Object Angle Y(1)-.3)
endif
if rightkey()=1
YRotate Object 1,WrapValue(Object Angle Y(1)+.3)
endif
if spacekey() =1
if jump#=1
move OBJECT UP 1,20
jump#=0
endif
endif
move object 1,speed#
if grav#=1
move OBJECT down 1,0.1
endif
if grav#=0
move OBJECT down 1,0
endif
text 1,1, "grav#"+str$(grav#)
text 1,15, "jump#"+str$(jump#)
speed#=0
set camera to follow object position x(1),object position y(1),object position z(1),object angle y(1),8,4,1,1
loop
end