Hello, pls help
I build my SpriteSheet with TexturePackerGUI (Lite Version),
I want to animated my sprite object(ayam_anak1)
I have test it at SDK stimulator, there is no error when I output it
but
why nothing appear except the background
–====================================================================–
– this is the content of my build.settings file
–====================================================================–
settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeLeft”, “landscapeRight”
},
},
}
–====================================================================–
– this is the content of my config.lua file
–====================================================================–
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
--fps = 60
}
}
–====================================================================–
– this is the content of my main.lua file
–====================================================================–
display.setStatusBar( display.HiddenStatusBar )
local _w = display.contentWidth/2
local _h = display.contentHeight/2
background = display.newImage( “images/melur_kiambang/001/bg.png”, true )
background.x = _w
background.y = _h
local sheetData1 = require “images.melur_kiambang.001.ayam_anak1.ayam_anak1”
local data1 = sheetData1.getSpriteSheetData()
local imageSheet = graphics.newImageSheet( “images/melur_kiambang/001/ayam_anak1/ayam_anak1.png”, data1 )
local sequenceData =
{
name=“walking”,
start=3,
count=6,
time=2000, – Optional. In ms. If not supplied, then sprite is frame-based.
loopCount = 0, – Optional. Default is 0 (loop indefinitely)
loopDirection = “forward” – Optional. Values include: “forward”,“bounce”
}
local ayam_anak1 = display.newSprite( imageSheet, sequenceData )
ayam_anak1.x = _w
ayam_anak1.y = _h
ayam_anak1:play()
print( ayam_anak1.isPlaying )
print( ayam_anak1.frame )
print( ayam_anak1.numFrames )
print( ayam_anak1.sequence )