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. As x and y parameters the coordinates of the two sprites are needed, the width and height of each sprite does PureBasic know itself.
This routine compares the rectangular areas around the sprites, giving a very fast but not very accurate function (depending on the shapes of your sprites). Very useful for fast arcade games.
For a more exact collision check use SpritePixelCollision().
Supported OS
All