How to reference a variable inside a class?
in
Programming Questions
•
11 months ago
I'm trying to create a scoring system. The problem is that the variables I need to determine my scoring system are inside a class, and when I reference them outside of it, it is telling me that they do not exist.
Is there a way to reference a variable inside a class for use outside of one?
(I have tried creating the scoring system within the class, but it keeps on writing over itself. And putting in a background layer makes other objects not visible).
Is there a way to reference a variable inside a class for use outside of one?
(I have tried creating the scoring system within the class, but it keeps on writing over itself. And putting in a background layer makes other objects not visible).
1