use a bool variable in 2 scenes

  • kroowteen
    Likes 0

    Problem Description

    I have a bool variable in my Scene A and now I want to use the bool variable in my Scene B.

    My bool variable is variable. When I click a Button then its true, when I clicked again its false.

    But I need the bool variable in Scene B.

    How I can use this bool variable from Scene A for Scene B? (Does one have a detailed solution, with code)

    *in cocos2d-x c++


  • Sonar Systems admin
    Likes 0

    This video should help you https://www.youtube.com/watch?v=UUUodhpcKy8 

Login to reply