Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Corpse Box Racers

Race corpses in cardboard boxes with up to 4 players! · By KabisCube

Found reset glitch

A topic by Blasskain17 created Jun 10, 2017 Views: 362 Replies: 3
Viewing posts 1 to 3

Hi there,

Just wanted to share a glitch that you might want to fix for your next update. On campaign mode (might also happen in challenge and other modes) when you finish a level and the "finish" text comes up, if you press the Q key to reset it records "0:00" as your best time instead of your real best time. This happened on lvl 4 and then I went to try it out on lvl 3 and it did the same so this is a bug in the programming not a bug in the level. Love the game so far! :)


Oh I just thought of a real simple way to fix it. If "finish" text appears, then disable Q Key. I don't know a whole lot about programming (still a student) but that should solve the issue.

Developer

Figured since you're studying programming that seeing the solution I did might be interesting.
Here's a snippet from that code (C#)

Basically, I just have a bool set to true if the player has finished.
If they have, I just don't Allow the player to reset.
Your solution was a good idea, this does basically the same thing.
But instead of disabling the button I disable a part of the function.

        if (hasFinished == true)
        {
            Invoke("SelectWinner", 0f);
        }
        else
        {
            //Reset the timer
            if (Input.GetButtonDown("P1_ResetToStart") || Input.GetKeyDown(KeyCode.Q))
            {
                currentTime = 0f;
            }
        }

Developer

Oh wow! I had completely missed that, thank you so much for the heads up!
I'll get it fixed right away.