I am developing a game that have 4 collections: menu, credit, game and game over collection. I follow the tutorial but it have only 2 scenes that call each other. In my case, I have 3 scenes
In the menu scene I have 2 options in the gui start and credit. In the game over scene I have restart and menu option. When I click credit in menu, it will load the credit scene but when I click back to menu I see this error
ERROR:GAMESYS: The collection /scenes/game_over/game_over.collectionc could not be unloaded since it was never loaded. Message āunloadā sent from controller:/loader_controller#controller to controller:/loader_controller#game_over_proxy.
I see the same error when I click menu in game over scene
ERROR:GAMESYS: The collection /scenes/credit/credit.collectionc could not be unloaded since it was never loaded. Message āunloadā sent from controller:/loader_controller#controller to controller:/loader_controller#credit_proxy.
This is my code
if message_id == hash(āshow_menuā) then
msg.post(ā#menu_proxyā, āloadā)
msg.post(ā#game_over_proxyā, āunloadā)
msg.post(ā#credit_proxyā, āunloadā)
end
@britzl Both credit and game over collection refer to menu collection. If I am back to menu from credit, it will unload credit but game over has not been loaded yet. Vice versa for game over collection. And @Mathias_Westerdahl solution worked well. Thank you guys
Quick question. Is it a serious problem to try to unload a collection which is already unloaded? Imagine Thereās a lazy developer who does something like this