Hi everyone,
So I’ve been developing a game for a project at school, and when I went to port it, I got an error. It runs fine on the emulator, and I checked the cases of all the words and they seem to be correct. I’ll throw in some code to help explain what I’m talking about.
local bossAttackSheet =
{
width = 399,
height = 304,
numFrames = 26
}
local sheet_king2 = graphics.newImageSheet(“attackKing.png”,bossAttackSheet)
So there is the code, I and attached the picture. I get a runtime error when the code reaches the newImageSheet line. It says:
Incorrect number of frames (w,h) = (399,304) with border (0) in texture (w,h) = (2599,305). Failed after frame 7 out of 26.
I also realized the the texture width and height are half of the actual image. I also get a different error on a different android device.
Overall I am pretty confused. Any help is greatly appreciated.