Our 'Get One, Give One' promo on Lifetime Memberships is back! - Click here

Portal not working when OneTimeUse = NO

Home 4 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 1 year, 5 months 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.

  • 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 ){


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

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

The topic ‘Portal not working when OneTimeUse = NO’ is closed to new replies.

Become part of the CartoonSmart Team with our Affiliate Program

Make recurring money when you refer a subscriber. 30 day tracking. Commissions 33%-50%!

Uh oh, missing your affiliate ID. Create one real quick