Is there a way to get the X and Y of the mouse all the time?
This works
function on_input(self, action_id, action)
if action_id == hash("click") and action.pressed then
p=(vmath.vector3(action.x, action.y, 0))
factory.create("#clickerfactory", p)
end
end
But this doesn’t
function update(self, dt)
go.set_position(vmath.vector3(action.x, action.y, 0))
end
(basically i need a tiny little collision object constantly following the mouse around in order to do some mouse over stuff for the menus and stuff)