SpriteIntersectsPoint
Previous Top Next

Checks whether any Sprite intersects with the specified point. This is the same as calling Sprite.IntersectsPoint for every Sprite but is faster. If nextMove is false the check is performed on the current position of the Sprites, if True the position each other Sprite will have after the next Tick is used. An array of Sprite indices is returned. The last item of the array always contains -1.
Syntax: SpriteIntersectsPoint (x As Int32, y As Int32, nextMove As Boolean) As String()

Example:
Dim SprIdxs(0)
  ...
SprIdxs() = gw.SpriteIntersectsPoint(50,50, True)
NumSprites = ArrayLen(SprIdxs()) - 1