Trying to load a lose menu but got this error
ERROR:GAMESYS: The collection /lose_ending/lose_ending.collectionc could not be loaded.
ERROR:GAMESYS: The collection /lose_ending/lose_ending.collectionc could not be unloaded since it was never loaded. Message ‘unload’ sent from loader:/loader_go#loader to loader:/loader_go#lose_ending.
ERROR:GAMEOBJECT: The collection ‘lose_ending’ could not be created since there is already a socket with the same name.
Not sure why its not working here is the loader script
elseif message_id == hash("lose_ending") then
msg.post(self.current_collection, "unload")
msg.post("#lose_ending", "load")
self.current_collection = "#lose_ending"
end
end
the load menu gui script is here
function init(self)
msg.post(".", "acquire_input_focus")
end
function final(self)
msg.post(".", "release_input_focus")
end
function on_input(self, action_id, action)
if(action_id == hash("touch") and action.released == true) then
if gui.pick_node(gui.get_node("mainmenu"), action.x, action.y) then
msg.post("loader:/loader_go#loader", "exit_screen")
end
end
end
and this is actioned by
elseif self.strike < 49 then
msg.post("/healthbar#healthbar_sprite", "play_animation", {id = hash("empty_health")})
print("max strikes")
msg.post("loader:/loader_go#loader", "lose_ending")
print("ending sent")
end
end
That’s the bundle of your game (the thing you would ship to players). The project folder is the one you open in the editor with your scripts and collections.