GetMaskValue
GetMaskValue

Checks the collision mask at the given pixel and returns its type.

type = myStoryboard.GetMaskValue( X, Y )

Return value
0 = clear
1 = obstacle
2 = platform
3 = ladder

Parameters
  • X
    The X co-ordinate of the pixel to test
  • Y
    The Y co-ordinate of the pixel to test
Comments

This will always return 0 (clear) if the given co-ordinate is outside the collision mask surface.

See also
Storyboard:IsClear
Storyboard:IsObstacle
Storyboard:IsLadder
Storyboard:IsPlatform



JAM © 2005 no one in partiular
Project started by David Evans in 2005