Sure thing Naomi.
[lua]local buttonSequence = {
{name = “playbutton”, frames = {18,17}},
{name = “credit1”, frames = {2,1}},
{name = “blastButton”, frames = {14, 13}},
{name = “dashButton”, frames = {16, 15}},
{name = “easy”, frames = {5, 4}},
{name = “medium”, frames = {12, 11}},
{name = “hard”, frames = {8, 7}}
}[/lua]
WARNING: Sequence (credit1) has an invalid index (0) that falls outside the range of valid image sheet frame indices: 1 <= index <= 26.
I still get the error on it.
Here’s more code if anyone wants to take a look:
[lua]local mainmenuAtlas = {}
–SheetInfo.sheet =
–{
mainmenuAtlas.frames = {
{ x=385, y=625, width=123, height=27 }, – credits_over@2x
{ x=385, y=598, width=123, height=27 }, – credits@2x
{ x=0, y=134, width=472, height=54 }, – difficulty@2x
{ x=365, y=734, width=96, height=37 }, – easy_over@2x
{ x=269, y=734, width=96, height=37 }, – easy@2x
{ x=217, y=363, width=37, height=38 }, – facebook@2x
{ x=0, y=731, width=112, height=39 }, – hard_over@2x
{ x=157, y=720, width=112, height=39 }, – hard@2x
{ x=215, y=631, width=170, height=33 }, – mainmenu_over@2x
{ x=215, y=598, width=170, height=33 }, – mainmenu@2x
{ x=330, y=674, width=157, height=38 }, – medium_over@2x
{ x=0, y=693, width=157, height=38 }, – medium@2x
{ x=0, y=230, width=217, height=203 }, – modeblast_over@2x
{ x=263, y=191, width=217, height=203 }, – modeblast@2x
{ x=0, y=433, width=215, height=204 }, – modedash_over@2x
{ x=254, y=394, width=215, height=204 }, – modedash@2x
{ x=165, y=664, width=165, height=56 }, – play_over@2x
{ x=0, y=637, width=165, height=56 }, – play@2x
{ x=0, y=188, width=263, height=42 }, – selectgame@2x
{ x=330, y=712, width=120, height=22 }, – sound_off@2x
{ x=385, y=652, width=120, height=22 }, – sound_on@2x
{ x=0, y=0, width=480, height=134 }, – title@2x
{ x=217, y=325, width=37, height=38 }, – trophy@2x
{ x=217, y=287, width=37, height=38 }, – twitter@2x
{ x=217, y=230, width=38, height=57 }, – htpbutton_over@2x
{ x=472, y=134, width=38, height=57 }, – htpbutton@2x
–},
}
mainmenuAtlas.sheetContentWidth = 510
mainmenuAtlas.sheetContentHeight = 771
return mainmenuAtlas[/lua]
I changed the TexturePacker lua file a bit to match the example on Mr. Beebe’s blog post.
I also have static images that I’m using form the same sheet and they all work fine. Kinda confused over here. [import]uid: 123298 topic_id: 26922 reply_id: 109389[/import]