More Realistic Jump

BlitzMax Forums/BlitzMax Beginners Area/More Realistic Jump

W
 #1
well Hello...fellow programmers, I am in need of assistance concerning the development of a more realistic method of allowing a character in my program to jump, so far I have this sloppy bit of code--

If KeyHit(57) ;Jumping
jumptimer = MilliSecs() + 1.5
uptimer = MilliSecs() + 1
	
While jumptimer > MilliSecs()
	While uptimer > MilliSecs()
		TranslateEntity user\model,0,0,.001
	Wend 
Wend
 	
EndIf


As you can see it's not all that impressive, and I could really use a helping hand, Thanks Guys!!