SpriteCollision()

Syntax

Result = SpriteCollision(#Sprite1, x1, y1, #Sprite2, x2, y2)
Description
Tests to see if the two sprites are overlapping. If not, the result is 0. This routines compares the rectangular areas around the sprites, giving a very fast but not very accurate command (depending on the shapes of your sprites). Very useful for fast arcade games.

Supported OS

All

<- SetRefreshRate() - Sprite Index - SpriteDepth() ->