I was fighting with an issue that turned out to be pretty simple in the end - variable scope.
As I'm going through and cleaning up the code for the game project, I'm going through and making functions out of things that should be functions. Being a not-so-good-programmer type with minimal experience, I didn't know (or think) about variable scope (which makes total sense to me now).
I was having issues passing vars back and forth between functions, and was getting no love. Now, I've made the appropriate global calls and everything is working!
Chalk up another learned lesson. Yay lessons!
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment