banking

Blitz3D Forums/Blitz3D Beginners Area/banking

thanks all...

this seems to work halfway decently but the model is rotated around on the Y axis 180 degrees. hmm. also, entityroll limiting isn't working, it's still rolling over.

Function moveplayer()
	
	xm = MouseXSpeed()
	xy = MouseYSpeed()
	xs = xs + xm
	xs = xs * .9
	
	px# = px# + xm * .005
	py# = py# + xy * .005
	px# = px# * .9
	py# = py# * .9

	TranslateEntity player,px,0,-py

	If EntityRoll (player) > -90 Or EntityRoll (player) < 90
		RotateEntity player,0,0,-xs
	EndIf

	MoveMouse centerx,centery
	
End Function