Sprite Col Rect

Tests if a sprite has collided with a rectangle

Syntax

bool = Sprite Col Rect(sprite,x1,y1 to x2,y2)

Description

This function tests if sprite has collided with the rect specified by x1,y1 to x2,y2.

bool contains true is the sprite does touch the rect and false otherwise.


Table of contents