Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

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()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.