I’m doing a level select, and when a certain node is clicked on it should load the level selected, however, I’m not getting any type of input recognition from the gui scene.
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.pressed and gui.pick_node(gui.get_node("level1"), action.x, action.y) then
msg.post("controller:/controller", "show_levelone")
elseif action.pressed and gui.pick_node(gui.get_node("level2"), action.x, action.y) then
msg.post("controller:/controller", "show_leveltwo")
end
end`
Is there something I wrote incorrectly? I Cant seem to find it.
Also, is there any idea as to what this error means;
WARNING:DLIB: Failed to send announce message (-2)
ERROR:DLIB: Failed to retrieve address family (-22): NOTSOCK
ERROR:DLIB: Failed to retrieve address family (-22): NOTSOCK
ERROR:DLIB: Failed to send to remote host, unsupported address family!
WARNING:DLIB: Failed to send announce message (-2)
Doesn’t really seem like it messes with the game at all, but just wondering.
Thanks