Find Object of a Type

Blitz3D Forums/Blitz3D Programming/Find Object of a Type

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.

I'm using the following sourcecode to find an object in an type and update it.
Function UpdateSprite(CurrentSprite,x,y)     
  For Sprite.Sprite = Each Sprite
     If Sprite\Sprite=CurrentSprite Then Exit
  Next
  Sprite\x = x
  Sprite\y = y
End Function


In source from other people I found a function called Object, it looks something like that:

Sprite\Sprite = Object.Sprite(something);

but I didn't find anything in Blitz3D-Helpfile, so I just wondering how this command works.