TList

BlitzMax Forums/BlitzMax Beginners Area/TList

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.

Ok, I've got an object created but I can't create two Old Skool Blitz style.

I'm guessing I need to use a Tlist. But what I don't understand is the way you can create one type in a variable without needing a list.

Have a Pat Butcher's:-

Type Vector2D
	Field _x:Int	= 0
	Field _y:Int	= 0
End Type

Global MyVector2D:Vector2D = New Vector2D

MyVector2D._x = 50
MyVector2D._y = 70

MyVector2D:Vector2D = New Vector2D

MyVector2D._x = 10
MyVector2D._y = 90

FUnction Render()
	DrawText "TEST",50,50
	
	Local p:Int = 0
	
	For MyVector2D:Vector2D = EachIn Vector2D
		DrawText MyVector2D._x,50, 80+p
		DrawText MyVector2D._y,50, 90+p
		
		p :+ 50
	Next
End Function