Fire
Overview
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.
Historical Feature
Fire entities exist for historical reasons and are not very customizable. In new projects, we recommend to use custom entities instead.
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 entity 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 entity to know these events.
Events of the type fire
None.