【问题标题】:My GameScene is not positioned correctly after switching scene切换场景后我的 GameScene 没有正确定位
【发布时间】:2020-02-10 18:21:21
【问题描述】:

Image of weirdly positioned sccene

所以在我制作开始场景之前,我的游戏场景运行良好。但现在不是。为什么?请帮忙。

【问题讨论】:

    标签: xcode sprite-kit position scene


    【解决方案1】:

    看看scene.anchorPoint,可能你不小心改了。默认为CGPoint(x: 0.5, y: 0.5)

    【讨论】:

    • 实例成员 'anchorPoint' 不能用于类型 'SKScene'。我不知道:/
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-18
    • 2015-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多