Sprite.setCollisionMask() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
boundaryMode? |
Yes |
|
boundaryType? |
Yes |
|
boundary? |
{Vector4} |
Yes |
alphaTolerance? |
{int} |
Yes |
separateMasks? |
{bool} |
Yes |
Not applicable.
Set the collision mask properties of this Sprite
. Applicable only if this Sprite
was created during the runtime. The boundary is calculated differently depending on its mode:
• The boundary itself has to be specified only if the manual mode is used.
• Alpha tolerance has to be specified only if the mode is not Full Image and will be used to ignore pixels which have the alpha value that equal or exceed it. A separate mask can be created for each frame of this Sprite
, which can be used if their shape or alpha values are to affect the collision mask.