Camera movement for coins portal

Home 3 Forums iOS / tvOS Starter Kits The Platform Games iOS and tvOS Starter Kit Camera movement for coins portal

This topic contains 1 reply, has 2 voices, and was last updated by  CartoonSmart 3 weeks ago.

  • September 17, 2017 at 8:40 pm #171499

    Hello Justin,
    In the classic side scroll demo, when a player goes to the portaltocoins, I notice that the camera doesn’t follow the player until the player exits the coins portal. Can I know how can I achieve this because when the one I tried, the camera still moves with the player within my project’s coins portal.

  • October 2, 2017 at 5:59 pm #172623

    Look for this line in the kit…

    let moveCam:SKAction = SKAction.move(to: camLocationToGoTo, duration:0)

    You can change the duration. But if you do, look a few lines above that code and change the duration for how long it takes to move the player. Both are at 0 now.

You must be logged in to reply to this topic.