after a minute i wanted to swap Sequence but not working, but during the 1st play the jump was playing but i i set name = walking_1
code
- local characterdata={
- name=“walking_1”,start=1,count=6,time=1000,loopCount = 0,loopDirection = “forward”,
- name=“jump”,start=1,count=6,time=100,loopCount = 0,loopDirection = “forward”,
- }
- obj.character = display.newSprite( sprite.charsheet, characterdata )
- obj.character.x = display.contentWidth*0.3
- obj.character.y = obj.goundline.y - obj.character.height*0.5
- obj.character:setSequence( “walking_1” )
- obj.character:play()
- timer.performWithDelay(3000, function (event)
- obj.character:pause()
- obj.character:setSequence( “jump” )
- obj.character:play()
- end, 1)