I am new to corona,
I am experimenting with sprite right now.
I receive 2 warning with same message when I wrote the codes below:
spriteSheet = sprite.newSpriteSheet("images/wheelmenu.png", 80, 80);
spriteSet = sprite.newSpriteSet(spriteSheet, 1, 16);
sprite.add(spriteSet, "turn", 1, 16, 1000, 0);
local wheel = {};
wheelGroup = display.newGroup();
for loopY = 1, 12 do
wheel[loopY] = sprite.newSprite(spriteSet);
wheel[loopY].x = (loopY \* 80) - 200;
wheel[loopY].y = 120;
wheel[loopY]:prepare("turn");
wheel[loopY]:play();
wheelGroup:insert(wheel[loopY]);
end
the warning is at line 3 and 8 and the message is:
Class Mismatch. Expected class of type: SpriteSheet got:SpriteSet
The codes above still run as what I expected, but I am curious why I got those warnings.
Thank you. [import]uid: 31508 topic_id: 32164 reply_id: 332164[/import]