hello, can i know how to get mouse coordinate everytime mouse is hovering in game screen
my code is like this but it’s doesn’t work
function init(self)
msg.post(".", "acquire_input_focus")
msg.post("@render:", "use_fixed_projection", { near = -1, far = 1 })
end
function on_input(self, action_id, action)
if action_id == nil and action.x and action.y then
local pos_x = action.x
local pos_y = action.y
label.set_text("/board#label", pos_x + ", "+pos_y)
end
end
I trying many ways in same topic in defold forum but none of this work