Solarus quests  1.6
Quest maker's reference
Fire

This is some fire whose sprite hurts enemies.

You can create this type of map entity only dynamically with map:create_fire(). It cannot be declared in the map data file.

Remarks
Fire entities exist for historical reasons and are not very customizable. In new projects, we recommend to use custom entities instead.

Overview

Fire is typically created with an equipment item like a lamp.

Fire hurts enemies that are sensible to it. It does not hurt the hero.

Fire can also be detected by non-playing characters: this is useful to implement a torch as a generalized %NPC that interacts with fire.

Methods inherited from map entity

Fire entities 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 fire

None.

Events inherited from map entity

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

Fire entities 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 fire

None.