美文网首页
Defold学习笔记001

Defold学习笔记001

作者: ThzStudio | 来源:发表于2018-07-30 18:07 被阅读0次
1.上下左右移动和点击
function on_input(self, action_id, action)
    if action_id == hash("up") then
        print("UP!")
    elseif action_id == hash("down") then
        print("DOWN!")
    elseif action_id == hash("left") then
        print("LEFT!")
    elseif action_id == hash("right") then
        print("RIGHT!")
    elseif action_id == hash("click") and action.pressed then
        print("CLICK!")
    end
end
2.图集相关
图集还有序列帧动画支持
序列动画设置

相关文章

网友评论

      本文标题:Defold学习笔记001

      本文链接:https://www.haomeiwen.com/subject/zttqvftx.html