bad argument #-1 to 'newSprite' (Proxy expected, got nil)

So this is probably a super easy fix but i got no idea how to fix it.

Here it is:

local explosion\_data = { width=108, height=108, numFrames=6, sheetContentWidth=108, sheetContentHeight=648, filename="enemykill.png"} local explosion\_sheet = graphics.newImageSheet( "enemykill.png", explosion\_data ) local explosion\_sequence = {{ name="seq1", sheet=explosion\_sheet, start=1, count=6, time=1000, loopCount=0 }} local explosion= display.newSprite(explosion\_data,explosion\_sequence) explosion.x=display.contentCenterX explosion.y=display.contentCenterY explosion:play()

Sprite is attached below.

Someone help!

Go line by line and print the output of the functions.  You’ll find the problem.

Also, your console should have a warning or error before that error.

Tip: If you’re going to ask us to debug your code, make a sample we can download.  I rarely cut-copy-paste images and code into a project to help others debug issues. 

I’m just too busy.

well found out my issue.

i used by data table instead of the sheet code

Go line by line and print the output of the functions.  You’ll find the problem.

Also, your console should have a warning or error before that error.

Tip: If you’re going to ask us to debug your code, make a sample we can download.  I rarely cut-copy-paste images and code into a project to help others debug issues. 

I’m just too busy.

well found out my issue.

i used by data table instead of the sheet code