This is great advice!
I guess the urge to write code took over and I skipped an important part because my first little toy project is already not working..
I'm sure I'll be laughing at this code in a couple of months!
I'm trying to make a game where:
(1) If you press the button once you gain 1 point.
(2) If you hold the button down your points become a bet.
(3) When you release you bet your points with an 80/20 chance of winning the bet.
I feel like I need to stop and plan this thing out.
do hand coding, also a little tip, whenever you are programming certain things, say for example movement or health, make a rough flow of how the program works with a pen and paper, this allows you to keep track of your code and kind of prototype in some sense