ok i got things working, sort of. I now have it so the character will jump up, and smoothly come back down. The only problem is that it will do one jump exactly as I want it to, but then the next jump will be very small and sketchy, and then it will have a regualr jump, then a bad one. It repeates this over and over and i dont know why. I went over the code many times and cant see whats doing it. Im probobly doin somthin obviously wronge and im just missing it, but I would appreciate the help. Heres the new code, I rewrote it completly because the other way just wasnt working.
ch=object position y(1)+height#
if spacekey()=1 and jumpb=0
height#=height#+10
jumpb=1
endif
if jumpb=1
position object 1, object position x(1),object position y(1)+height#,object position z(1)
endif
if ch>get ground height(1,object position x(1),object position z(1))
height#=height#-.5
endif
if object position y(1)<=get ground height(1,object position x(1),object position z(1))
jumpb=0
position object 1,object position x(1),get ground height(1,object position x(1),object position z(1))+object size y(1),object position z(1)
endif
Thanks