Im struggling to load my game.
the error message i get is
menu/mainmenu.gui_script:8: Could not send message ‘start_game’ from ‘default:/menu#start’ to ‘loader:/go#loader’.
stack traceback:
Here is my code for my gui
function init(self)
msg.post(".", "acquire_input_focus")
end
function on_input(self, action_id, action)
if(action_id == hash("touch") and action.released == true) then
local textBegin = gui.get_node("start1")
if(gui.pick_node(textBegin,action.x,action.y)) then
msg.post("loader:/go#loader", "start_game")
end
end
if(action_id == hash("touch") and action.released == true) then
local textExit = gui.get_node("exit1")
if(gui.pick_node(textExit,action.x,action.y)) then
msg.post("@system:", "exit", {code = 0})
end
end
end```
here is my loader script
```lua
local function load_menu(self)
msg.post("go#menu", "load")
msg.post("go#menu", "enable")
end
local function unload_menu(self)
msg.post("go#menu","unload")
end
local function load_main(self)
msg.post("go#main", "load")
msg.post("go#main", "enable")
end
function init(self)
msg.post(".", "acquire_input_focus")
load_menu(self)
end
function on_message(self, message_id, message, sender)
if message_id == hash("start") then
unload_menu(self)
load_main(self)
end
end