Yanfly Battle Engine has built-in damage popup. It stays on screen for a couple seconds and fades away.
The problem is that the last damage popup may not have time to fade out when battle ends, and it will remain on screen:
<removed>
There's this method that handles when to remove popups, I feel like this is where a fix could be made:
The problem is that the last damage popup may not have time to fade out when battle ends, and it will remain on screen:
<removed>
There's this method that handles when to remove popups, I feel like this is where a fix could be made:
Code:
def update_popups
for popup in @popups
popup.update
next unless popup.opacity <= 0
popup.bitmap.dispose
popup.dispose
@popups.delete(popup)
popup = nil
end
@popup_flags = [] if @popups == [] && @popup_flags != []
return unless SceneManager.scene_is?(Scene_Battle)
if @current_active_battler != SceneManager.scene.subject
@current_active_battler = SceneManager.scene.subject
@popup_flags = []
end
end