MagicGlass
┗> Event > Object > Class
Magical glass are Overworld objects that appear only when stepped on.
MagicGlass is an Event - naming an object magicglass on an objects layer in a map creates this object.
Constructor
MagicGlass(x: number, y: number, shape: number, y?], properties: table)
Arguments:
| x: number | |
| y: number | |
| shape: number, y?] | |
| properties: table |
Methods
MagicGlass:getGlassRevealingObjects()
Gets a list of all objects in the stage that should reveal magic glass on collision.
Returns:
| 1: Object[] | A list of objects that should reveal magic glass on collision. |
MagicGlass:updateGlassAlpha(index: integer, colliding: Object[])
Updates the alpha of a magic glass tile based on whether it is colliding with any objects.
Arguments:
| index: integer | The index of the magic glass tile being updated. |
| colliding: Object[] | A list of objects currently colliding with this magic glass tile. |