Hi. I did a quick search but didn't find exactly what I was looking for. Is there a better? way to determine an objects type than by using an ID like in the following code?
Perhaps something like this?
Type TGameObject Field TypID:Int '1=TBall 2=Tsomethingelse etc. Field X:Float Field Y:Float '... etc. End Type Type TBall Extends TGameObject Field '... etc. 'elsewhere... For Local o = EachIn GameObjectList If o.TypID = 1 Then ... Next
Perhaps something like this?
For Local o = EachIn GameObjectList If Self = TBall Then ... Next