collideMapArea()
Purpose
Used to cause sprites to interact with marked collision areas in map data.
Description
Receives a sprite handle and returns an array of structures detailing collision data.
Syntax
c = collideMapArea( areaName, sprite )
Arguments
sprite Handle of the sprite being collided
areaName String name of the marked area to collide with
c.exists Boolean value (true or false) to indicate whether a collision has occured with the supplied area
c.resolution_a Resolution vector of the given sprite collision (velocity applied to the sprite to resolve)
c.resolution_b Resolution vector of the given sprite collision (velocity applied by the sprite)
Example
Associated Commands
drawMap(), drawMapLayer(), getMapArea(), getMapAreaNames(), getMapLocation(), getMapLocationNames(), loadMap(), unloadMap(), updateMap()