Issue with lists

BlitzMax Forums/BlitzMax Beginners Area/Issue with lists

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.

	Method CollideWithEntity:tEntity ()
		Local e:tEntity
		For e = EachIn EntityList
			If e <> Self
				If e.X > X + Width Continue 
				If e.X + e.Width < X Continue
				If e.Y > Y + Height Continue
				If e.Y + e.Height < Y Continue
				Return e
			End If
		Next
	End Method