游戏动画停止正常工作 - Corona SDK

Games animation stopped working the way it should - corona SDK

所以....我的游戏发生了一些奇怪的事情。在我的游戏中有 2 个动画序列:Hop 和 Drop

local sequenceData = {
    {name="hop", start=1, count=1, time=300},
    {name="drop", start=2, count=1, time=300}
}  

它们是从名为“MovePlayer()”的函数中调用的

function movePlayer(event)
   bird.bodyType = "dynamic"
   gameStarted = true
   if event.phase == "began" then 
        bird:setLinearVelocity(0, -flapForce)
        playSFX(sndJump)
        bird:setSequence("hop")
        print("Hop")
   elseif event.phase == "ended" then
        bird:setSequence("drop")
        print("Drop")
   end
   return true
end

这些之前工作正常,但现在当我点击屏幕并希望播放跳跃序列时,我看不到任何动画。知道有什么问题吗?该游戏是在四月份创建的。

干杯

After changing the sequence, the sprite will not play automatically — call object:play() to continue playing on the new sequence.

Corona Docs