Page 1 of 1

Yet another sprite outside of ...

Posted: Wed May 18, 2016 9:03 pm
by Adil
Usually, the sprite errors happen when there's less of image than you've defined, but I can't guess what on the earth is causing it in this code:
Code
Error:

Code: Select all

Error Util.cpp:58: Sprite outside of "__core__/graphics/green-circle.png" (at 24, 49, size 1x1 of 25x25).
The size of the picture is 25x25, there's single frame, single direction.
What is that number mishmash from the error log supposed to mean anyway?

Re: Yet another sprite outside of ...

Posted: Wed May 18, 2016 9:11 pm
by Adil
Right, case solved: animation layers are supposed to be of same size or something.
By changing the last line:

Code: Select all

table.insert(turret.folded_animation.layers,overlay) 
to

Code: Select all

table.insert(turret.base_picture.layers,overlay) 
I got that single frame addition to work on turret.