Multi-purpose Back Button Bug

Discussion in 'How Can I...?' started by alexsafayan, Nov 21, 2018.

  1. alexsafayan

    alexsafayan Boxer

    Joined:
    Oct 14, 2016
    Messages:
    73
    Likes Received:
    14
    I have a shop which is accessed from multiple screens in my game. There's a back button in the shop which when pressed I want to be redirected to which ever screen where the user accessed the shop.

    It was working perfectly until I added a world attached to the shop UI to give it some life. Now when I press back, nothing happens. I've messed around with interval and back jump, but I can't seem to find a solution. It seems that when I press back, it loads the shop world, which in turn loads the shop UI.
    [​IMG]
    As you can see in the image above, the shop is accessed from three different screens in the game. The back button is located in the Shop UI, and it does not work.
     
    Last edited: Nov 21, 2018
  2. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    The back button is trying to go back into the world. That's why it's not working. It's designed to go back into whatever was before it and in this case that is the world
     
  3. alexsafayan

    alexsafayan Boxer

    Joined:
    Oct 14, 2016
    Messages:
    73
    Likes Received:
    14
    @Josh (Tekanology) Hi Josh, thanks for the reply. I was thinking that this was the issue, but I still need to find a way around it.
     

Share This Page