Solarus-Games English Forum

Solarus => Development => Topic started by: dpro_games on June 29, 2017, 11:21:29 PM

Title: In trouble with pause menu
Post by: dpro_games on June 29, 2017, 11:21:29 PM
Hello, i'm using the exact same code as the christopho's project (mecuris chest) for the pause menu and the game over menu...
(pause.lua/pause_inventory.lua/pause_map.lua/pause_options.lua/pause_quest_status.lua/pause_submenu.lua/game_over.lua)
https://github.com/solarus-games/zelda-mercuris-chest/tree/dev/data/scripts/menus (https://github.com/solarus-games/zelda-mercuris-chest/tree/dev/data/scripts/menus)
But there is a strange bug when the player die... the game over menu work very well but if the player choose to continue the game (with save or without save...) when the pause button is pressed during the game after the choice, the menu is completely broken... the images are superimposed on the others ect... I don't know why. But when we quit the game and restart the save all is back as before...

Please help me ! Thank
Title: Re: In trouble with pause menu
Post by: Christopho on June 29, 2017, 11:45:04 PM
Hi,
It is a bug of Mercuris' Chest menus that became apparent when I introduced the multi_events.lua script. I fixed it in other games (Zelda XD2 and Zelda OLB SE) but not in Mercuris' Chest yet. But you can reproduce essentially the same fix as in Zelda XD2 here: https://github.com/solarus-games/zelda-xd2-mercuris-chess/commit/b5c4be400703c7e87fff4f9b549b6aa8f33f0d7b
Title: Re: In trouble with pause menu
Post by: dpro_games on June 30, 2017, 12:01:04 AM
Je n'ai rien compris à comment le corriger (je suis débutant complet...)
Ou se trouve le code à changer et par quoi le remplacer ?

Merci pour la reponse !