如何自定义一个action

网上找到的都是c++版本,有lua版本的供参考吗?

请在C++中自定义action,然后再从lua-binding中导出到lua中。:13:

local action = cc.Sequence:create({
cc.CallFunc:create(function()
bone:changeDisplayWithIndex(1, true)
end),
cc.DelayTime:create(1),
cc.CallFunc:create(function()
bone:changeDisplayWithIndex(0, true)
end),
cc.Spawn:create({}),
})