Blitz Rally Demo - 1st person view

Miscellaneous Forums/Blitz Showcase/Blitz Rally Demo - 1st person view

Const FPS=30 ;(you may want to change the FPS)

;ALL your "loading" code and "sep-up" code should be here:
;?
;---------------------------------------------------------

period=1000/FPS
time=MilliSecs()-period

While Not KeyHit(1)

	Repeat
		elapsed=MilliSecs()-time
	Until elapsed

	;how many 'frames' have elapsed	
	ticks=elapsed/period
	
	;fractional remainder
	tween#=Float(elapsed Mod period)/Float(period)
	
	For k=1 To ticks
		time=time+period
		If k=ticks Then CaptureWorld


	;ALL your code should be here:
	;?
	;-----------------------------

	UpdateWorld

	Next
	
	RenderWorld tween

	;Text printed to the screen should be here:
	;?
	;------------------------------------------

	Flip
Wend

End


Try with this, and is better if you can compile a new exe with this code. I'm also interested in finding
if frame tweening was the problem I saw in your demo :)

Paolo.