Jump to content


oliverrook

Member Since 21 Oct 2015
Offline Last Active May 17 2020 10:20 PM
-----

Topics I've Started

Var A keeps increasing more than I want it to

15 May 2020 - 04:38 PM

My code is rather short, but I'll put it in a pastebin anyways.
I'm struggling to figure out what the problem here is.
I want to have a increase each time I press a button on the wall. I'm essentially building a combat minigame and want it to go to the next level each time I press the button, but whenever I press the button it just quits out entirely.
This is my code:
https://pastebin.com/bg5X5ycU
I put in some code to check what A is and what levels is, just to make sure I wasn't crazy, and for some reason, it outputs this:
7 (The value of "a")
3 (The value of "levels")

For the life of me, I can't figure out why it's outputting 7.