This is my code
-- main ----------Background----------------------- local background = display.newImageRect("blueSpace.jpg", 520,923) background.x = display.contentCenterX background.y = display.contentCenterY ----------Adron---------------------------- local sheetData = { width=321, height=312, numFrames=21, sheetContentWidth=6742, sheetContentHeight=312 } local mySheet = graphics.newImageSheet( "AdronSprite.png", sheetData ) local sequenceData = { { name = "normalRun", start=1, count=21, time=500, loopDirection = "bounce",}, } local animation = display.newSprite( mySheet, sequenceData ) animation.x = display.contentWidth/2 --center the sprite horizontally animation.y = display.contentHeight/2 --center the sprite vertically animation.timeScale = .5 --animation:setSequence ("normalRun") animation:play()
ok so i want my sprite sheet to do the animation yet i dont want it to bounce or move forward just do the animation and i cant find a way to do this
can somebody Help me please
i attached the sprite sheet