Beginners guide to BlitzMax

BlitzMax Forums/BlitzMax Tutorials/Beginners guide to BlitzMax

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.

Better: try editing the main loop to:

While Not KeyDown(Key_Escape)
	For Local Tank:TankType = EachIn TankType.List'Global in this type
		Tank.Draw()
		Tank.Move()
	Next
	DrawText "Number of Tanks : "+tank.List.Count(), 20, 20
	DrawText "Press ESC to exit", 20, 40

	Flip;Cls
Wend