1scrollingscore = class:new() 2 3function scrollingscore:init(i, x, y) 4 self.x = x-xscroll 5 self.y = y 6 self.i = i 7 self.timer = 0 8end 9 10function scrollingscore:update(dt) 11 self.timer = self.timer + dt 12 if self.timer > scrollingscoretime then 13 return true 14 end 15 16 return false 17end