This is probably a question with an obscenely simple answer, but I've been struggling with it all day, so here goes:
I have a variable, $goodness, that changes when certain setter links are clicked (it either increases or decreases). The problem is, I want to be able to check my variable's amount at any given time, without having to start over my game each time (at the start of the game, I've set the variable to 0). I've looked all over and can't find the answer: how do you simply set a variable without changing its state, and how do you view it?
Thanks in advance! And please go easy on me, I'm new to programming in general.
Comments