Set Image Collision

Sets the collision information for an image.

Syntax

Set Image Collision useMask,tolerance,image
Set Image Collision useMask,tolerance,image,bank

Description

This command is used to specify the type of collision an image should perform.

useMask is a boolean value containing whether or not the image should perform mask based collision. If this value is false then it simply uses a rectangle to perform collision, if it is true then it handles collision based on the images shape.

tolerance is used in conjunction with mask collision. It is a value of how sensitive to collision that image is. This is a value between 0 (least sensitive) and 255 (most sensitive).

image is the index into a bank of the image to alter the collision information for

bank is an optional parameter specifying a bank to get the image from. If this is not specified then the default image bank is used.


Table of contents