And if you add the self.scrolls.oh = pos_y
inside your if-statement, like this:
local pos_y = 3000
function on_input(self, action_id, action)
if action_id == hash("touch") and action.pressed then
local n_node = gui.get_node("next_bt")
local scroll = gui.get_node("talk_scroll")
if gui.pick_node(n_node, action.x, action.y) then
pos_y = pos_y + 200
self.scrolls.oh = pos_y
gui.set_size(scroll, vmath.vector3(720, pos_y, 0))
end
end
self.scrolls = dirtylarry:scrollarea("talk_scroll", action_id, action, self.scrolls, function(self, action_id, action)
end)
end
Does that work?