Skip to content

# Wall

A wall is an invisible obstacle that stops some specific types of map entities.

This type of map entity can be declared in the map data file. It can also be created dynamically with `map:create_wall()`.

## Overview

If you want to prevent a kind of entity to leave a delimited area while allowing others to pass, you can use walls.

For example, at the entrance of a village, you can make a wall that blocks enemies enemies and lets the hero pass.

Walls can have any size, but like all entities, their width and height must be multiples of 8 pixels.

## Methods Inherited from map entity

Walls are particular map entities. Therefore, they inherit all methods from the type map entity.

See entity to know these methods.

## Methods of the type `wall`

None.

## Events inherited from map entity

Events are callback methods automatically called by the engine if you define them.

Walls are particular map entities. Therefore, they inherit all events from the type map entity.

See entity to know these events.

## Events of the type `wall`

None.

April 1, 2025