solarus-games / solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/solarus
http://www.solarus-games.org
Other
710 stars 134 forks source link

Add new events on_map_finished and on_opening_transition_finished #1191

Open Diarandor opened 6 years ago

Diarandor commented 6 years ago

Add missing transition events to make our lives easier:

Item events:

Menu events:

Game events:

Diarandor commented 6 years ago

I'd like to use "item:on_map_finished(map)" for some items like the custom shield, to destroy the custom entity shield before the opening transition starts, because the shield remains visible in the original map during this transition (which is bad). I know there are dirtier workarounds like registering this with the multi_events script, but I'd prefer to use a cleaner solution with a normal event. These events are gonna be very useful for other items too.

Diarandor commented 6 years ago

This issue can wait for v1.7 since we will be using the multi_event script when necessary.