function on_input(self, action_id, action)
if action.repeated and self.ficha_seleccionada ~= nil and action_id == hash("touch") then
gui.set_position(self.ficha_seleccionada,vmath.vector3(action.x, action.y, 0))
OR you could track action.pressed and action.released and as long as the button is pressed you move the node:
function on_input(self, action_id, action)
if action.pressed then
self.pressed = true
elseif action.released then
self.pressed = false
end
if self.pressed and self.ficha_seleccionada then
gui.set_position(self.ficha_seleccionada, vmath.vector3(action.x, action.y, 0))
end
end