【问题标题】:SKNodes in SKScene moving in the wrong direction [closed]SKScene中的SKNodes朝着错误的方向移动[关闭]
【发布时间】:2015-05-11 16:17:56
【问题描述】:

我正在沿 x 轴执行一维运动。

物体在移动,但方向错误

移动场景的代码

self.obstacles.position.x -= speed // obstacles = objects
self.map.position.x -= speed // map is the scene

【问题讨论】:

    标签: ios swift tiled jstilemap


    【解决方案1】:

    原来我忘记将节点附加到 worldCamera 节点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多