Checks whether a specific Sprite will collide with any other Sprite if moved to a
specified point. If allActiveSprites is False only Collider Sprites will be checked, if True
all Active Sprites will be included in the check. If nextMove is false the check is
performed on the current position of the other 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: CheckForSpriteCollision(index As Int32, x As Int32, y As Int32, allActiveSprites
As Boolean, nextMove as Boolean) As String().
Example:
Dim SprIdxs(0)
...
SprIdxs() = gw.CheckForSpriteCollision(0, Sprite.NextX, Sprite.NextY, False, True)
NumCollisions = ArrayLen(SprIdxs()) - 1