Hey, forum!
I got a problem, probably an easy fix, but I can’t seem to figure it out.
require "sprite"
local sheet2 = sprite.newSpriteSheet( "africanamerican.png", 32, 32 )
local spriteSet2 = sprite.newSpriteSet(sheet2, 1, 12)
sprite.add( spriteSet2, "man", 1, 12, 10000, 0 ) -- play 15 frames every 200 ms
local instance2 = sprite.newSprite( spriteSet2 )
instance2.x = display.contentWidth/2
instance2.y = display.contentHeight/2
instance2:prepare("man")
instance2:play()
the problem is on line 5 “local spriteSet2 = sprite.newSpriteSet(sheet2, 1, 12)” when I change the frames that will be shown to 10, 12, I get an error saying “sequence frames must be inside the sheet”.
It works fine when i type 1, 12 or any other combination not including double digits in the first frame shown.
Also, my sprite has 12 sheets.
Please help me!
EDIT: sorry about the racism guys! [import]uid: 57686 topic_id: 9846 reply_id: 309846[/import]
