我有這種轉變。我想將位於「desplazar」位置的塊中的圖像消失並刪除。完成其在我的轉換不工作
transition.to(block[desplazar], {time=14000, alpha=0, onComplete=timer.performWithDelay(12000, borrado(desplazar),1) })
local function borrado(desplazar)
block[desplazar]:removeSelf()
end
但i'ts不工作時,圖像inmediatly dissapearing,我認爲圖像是要到dissapear當轉換完成後,還我已經把延遲的功能,但它`不工作。
希望你能幫助我
感謝
我做了這樣還
transition.to(block[desplazar], {time=14000, alpha=0, onComplete=timer.performWithDelay(12000, intime(),1) })
local function intime()
print ("intime")
borrado(desplazar)
end
它不工作。我做了改變(我在問題中寫下了它),但是它正在執行removeselflymedimedily。我希望你能幫助我,非常感謝你! –
您的修改代碼仍然立即調用該函數,而不是讓計時器調用該函數。但是我看到你已經得到了一些你想要的代碼片段。我希望你看到我現在想指出的差異。 –