One flipbook animation after another

--First animation
gui.animate(animate_node, gui.PROP_POSITION, new_pos1, gui.EASING_LINEAR,
animation_speed, 0, function()
    --Second animation after completing the first
     gui.animate(animate_node, gui.PROP_POSITION, new_pos2, gui.EASING_LINEAR,
animation_speed)
end)

More details: https://defold.com/ref/stable/gui/#gui.animate:node-property-to-easing-duration-[delay]-[complete_function]-[playback]