Hi guys im getting this error when im switching a scene. I did check if it was sceneGroup.insert(object) as corona was suggesting but its actually sceneGroup:insert(object)
Well, firstly, did you mean tick or tick1 in your initial post?
Secondly, it doesn’t really ‘work’. You’re just avoiding a runtime error by doing nothing if it is nil. Sometimes that is ok if an object can indeed be nil in certain circumstances, but I suggest not in this case.
Track through everything that happens to ‘tick’ or ‘tick1’ or whatever it is, from the time it is created to the time you try to insert it. Check whether it’s nil right after creation, which would suggest the image doesn’t exist.