Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

score isnt going up on later levels

Discussion in 'Scripting' started by SuperCrow2, May 23, 2020.

  1. SuperCrow2

    SuperCrow2

    Joined:
    Mar 8, 2018
    Posts:
    584
    Score only goes up on levels 1 and 2, but for some reason the rest of the levels after that the score doesnt go up at all. Idk why.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
  3. ProntName

    ProntName

    Joined:
    Apr 27, 2020
    Posts:
    15
    Hard to answer without knowing your code. See Kurts link. Your script may not be reaching all scenes, so I would start there. Once again, hard to say without seeing your code ;)
     
  4. SuperCrow2

    SuperCrow2

    Joined:
    Mar 8, 2018
    Posts:
    584
    But I have everything set up the same on each level, I did everything I was supposed to yet the score only goes up on the first two levels.
     
  5. SuperCrow2

    SuperCrow2

    Joined:
    Mar 8, 2018
    Posts:
    584
    I tried everything. From deleting the objects and putting them back in, deleting the score and putting it back in, copy+pasting an object from a previous level and whatnot, and nothing works to get the score to go up on level 3. Yet, the score goes up perfectly fine on the first two levels.
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    There seems to be no point in further discussion about code that does not appear to exist, at least judging by how much of it has gotten posted here. I am unwatching this thread. Good luck sir Crow!
     
  7. SuperCrow2

    SuperCrow2

    Joined:
    Mar 8, 2018
    Posts:
    584
    Theres nothing to say. There is code. its the same code attached to the same things on everything in each level. Unity is just a very buggy engine.

    Its the same code that works on the first two levels but not any other level after it, even though the whole setup is the same with the same code.

    This happened to me once before. I backed it up, or even downloaded the game, the backed up files worked but not the main thing I work on.

    I was just seeing if anyone else ever ran into this problem too where it suddenly just stopped working on some levels of their game but works on other parts to see how they fixed it
     
    Last edited: May 23, 2020