Spriteloq Runtime error: attempt to call field 'copy' a nil value

If you're running into this error, it's probably because you're running a Corona build earlier than 514.

If you're on build 484, you should download a build at least later than 526 which fixes a bunch of sprite bugs.

If you don't have access to the daily builds, try adding this function before the require('loq_sprite') call.

1
2
3
4
5
6
7
8
9
10
11
if table.copy == nil then
    table.copy = function (...)
        local t = {}
         for adx, tb in ipairs(arg) do
             for i = 1, #tb do
                 table.insert(t, tb[i])
             end
         end
         return t
    end
end
views:1469 update:2011/10/12 9:17:43
corona forums © 2003-2011