Hello everyone, i designed a levelOne scene using Composer have all of objects set using physics, run and build it shows up fine no issues, Now I want to animate a character on that scene and this is what I have below. The App runs it prints my print statement , but no animation or sprite to be seen !! No errors in the console log either.
Any Help is appreciated.
function scene:create( event )
local sceneGroup = self.view
print (“I made it to level One Scene create”)
– Setting up Animation –
local sheetData = {
width = 210,
height = 200,
numFrames = 18,
sheetContentWidth = 1024,
sheetContentHeight = 1024 }
local mySheet = graphics.newImageSheet(“enemySheet.png”,sheetData)
local sequenceData = {
{ name = “normalRun”,start = 1,count = 18,time = 1000}
}
local animation = display.newSprite(mySheet,sequenceData)
animation.x = display.contentWidth/2 -60
animation.y = display.contentHeight + 100
animation:play()
end