Portal not working when OneTimeUse = NO

Home 3 Forums iOS / tvOS Starter Kits The Platform Games iOS and tvOS Starter Kit Portal not working when OneTimeUse = NO

This topic contains 2 replies, has 2 voices, and was last updated by  M. Akbar 2 weeks, 4 days ago.

  • September 25, 2017 at 12:38 am #171835

    Hello Justin,
    I notice that when I set Portal’s OneTimeUse = NO, moving player to that portal doesn’t transport to the jump destination. It only worked when setting to YES. Please advise.
    Thanks

  • October 2, 2017 at 6:03 pm #172624

    Might be a bug. Can you test this…

    Search for in GameScene_Physics.swift…

    if ( somePortal.oneTimeUse == true && somePortal.alreadyUsed == false) {

    and change it to….

    if ( (somePortal.oneTimeUse == true && somePortal.alreadyUsed == false) || somePortal.oneTimeUse == false ){

    Thanks

  • October 5, 2017 at 5:38 pm #174527

    Hello Justin,
    I’ve added the suggested ‘|| (somePortal.oneTimeUse == false )‘ line & it worked.
    Thanks you!

You must be logged in to reply to this topic.