For some reason, the sprite object appears on the screen for horse and cat sprites, but it doesn’t show the sprite that I made which is the bloat fish sprite in the dimensions of 1920 x 1080 pi (or 480 x 540 pi per frame) .
The image was generated using Photoshop and created in PNG format. Here’s the code and the sprite images are attached below.
----------------------------------------------------------------------------------------- -- Sample Sprite ----------------------------------------------------------------------------------------- -- Your code here local sheetOptions = { width = 480, -- bloatfish dimension height = 540, numFrames = 8 } --[[{ width = 200, -- horse height = 155, numFrames = 8 } { width = 512, -- cat height = 256, numFrames = 8 }]]-- local sheet\_idleFish = graphics.newImageSheet('bloat.png', sheetOptions) --bloatfishidle.png --'catsprite2.png' local sequences\_idleFish = { { name = 'idle', start = 7, count = 8, time = 500, loopCount = 0, loopDirection = 'forward' }, { name = 'move', frames = { 1, 2, 3}, time = 200, loopCount = 0 } } local bloatFish = display.newSprite(sheet\_idleFish, sequences\_idleFish) bloatFish.x = display.contentWidth/2 bloatFish.y = display.contentHeight/2 bloatFish:play() --bloatFish:scale(.5,.5)