Solarus quests  1.6
Quest maker's reference
Bomb

A bomb is an entity that explodes after a few seconds.

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

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

Overview

A bomb can be lifted by the hero before it explodes. When it explodes, it is removed from the map, a new entity of type explosion is created at the same position and the sound "explosion" is played.

If a bomb is placed on a stream, it follows a movement corresponding to this stream.

Methods inherited from map entity

Bombs 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 bomb

None.

Events inherited from map entity

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

Bombs 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 bomb

None.