local imgBg = display.newSprite("666666.jpg") :pos(display.cx, display.cy) :addTo(self) local move1 = cc.MoveBy:create(0.5, cc.p(0, 10)) local move2 = cc.MoveBy:create(0.5, cc.p(0, -10)) local SequenceAction = cc.Sequence:create( move1, move2 ) transition.execute(imgBg, cc.RepeatForever:create( SequenceAction ))