help me with inertia !!!

BlitzMax Forums/BlitzMax Beginners Area/help me with inertia !!!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi !
For my classic vertical shoot'em up, how to add some inertia to... my ship ???
Thanks !

Graphics 800,600


Global Player_x# = GraphicsWidth() / 2
Global Player_y# = GraphicsHeight() / 2

While Not KeyDown(KEY_ESCAPE)

	If KeyDown(KEY_LEFT) Then 
		Player_x# = Player_x# - 1.0
	End If

	If KeyDown(KEY_RIGHT) Then 
		Player_x# = Player_x# + 1.0
	End If

	If KeyDown(KEY_UP) Then 
		Player_y# = Player_y# - 1.0
	End If
	
	If KeyDown(KEY_DOWN) Then 
		Player_y# = Player_y# + 1.0
	End If
	
	Cls
                ' my ship ;-)
	DrawOval Player_x#, Player_y#, 10,10
	Flip
	
Wend