1.14.08 - Carried object

A carried object is a map entity that the hero is lifting, carrying or throwing.

Overview

A carried object is created automatically by the engine when the hero lifts a map entity. Map entities that can be lifted include destructible objects and bombs. The carried object takes the sprite and the features of the lifted entity it is created from.

The hero can then walk with his carried object and throw it. He can even go to another map: the carried object is preserved.

Carried object sprites

Two sprites for a carried object are automatically created by the engine. You can access them like for any other entity, specifying their name in entity:get_sprite([name]).

Methods inherited from map entity

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

See Methods of all entity types to know these methods.

Methods of the type carried object

None.

Events inherited from map entity

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

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

See Events of all entity types to know these events.

Events of the type carried object

None.