banking

Blitz3D Forums/Blitz3D Beginners Area/banking

ok, everything's working great! Hope someone finds this useful. note: for some reason i have to rotate the player 180 degrees on the Y axis (see rotateentity below).

Function moveplayer()
	xm = MouseXSpeed()
	xy = MouseYSpeed()
	xs = xs + xm * .14
	
	px# = px# + xm * .003
	py# = py# + xy * .003
	px# = px# * .9
	py# = py# * .9
	
	If xs > -90 And xs < 90
		RotateEntity player,0,180,xs
		xs = xs * .9
	EndIf
	
	If xs < -90
		xs = -90
	Else If xs > 90
		xs = 90
	EndIf
	
	TranslateEntity player,px,0,-py

	MoveMouse centerx,centery
End Function