I have a problem when animating a GUI Button. The code looks something like this :
function init(self)
msg.post(".", "acquire_input_focus")
self.button = gui.get_node("button")
end
function on_input(self, action_id, action)
if action_id == hash("touch") then
if gui.pick_node(self.button, action.x, action.y) then
print("Button pressed")
gui.animate(self.button, "scale", vmath.vector3(0.5, 0.5, 0), gui.EASING_INBACK, 1)
end
end
end
The problem is when the animation finished the button doesn’t seem to react to input anymore.
I don’t know if the problem is on my side or not and hope that someone can help me resolve this issue.