猫史档案馆


【求助】,如何让玩家点击左键就将y坐标增加1个力(回复我啊)

用户:陈煜楷陈煜楷查看:1 回复:3 评论:1 创建时间:2022-01-09T21:18:30


我这个会报错

world.onprees((b,e)=>{
   if (b != 'action0'){
       e.BOX3Voctor.y += 3
   }

})


回复

上一页1 页 / 共 1下一页
代码猿代码猿

 

would.onPress(({button,entity})=>{
    if(button!='Action0'){
        entity.velocity.y+=3
    }
})

点赞0


评论


淳朴的流星猫ofTt淳朴的流星猫ofTt

这样的问题找我不就是了,imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"寒假之后再说吧

点赞0


评论


陈煜楷陈煜楷

imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼"  

点赞0


评论