06-06-2016, 06:09 AM
(06-05-2016, 10:42 PM)kyonides Wrote: { } can enclose all key values pairs of any hash, Siletrea.
An instance variable is a variable only available to the class script involved but each copy of it will own one of its own, if it's Game_Player then it's only supposed to be available for it unless you add specific methods to get access to them or modify them. A second copy of Game_Player would hold its default values.
Class variables work in a different way, one of them is shared with all copies of that class script, so only one of them with the same name might ever exist in all of them at the same time.
Instead of subclass we prefer to call them child classes as if there were a mother-daughter relationship between classes involved.
ok so....? in laymans terms the { } will only affect the script your using it in and clones whatevers in it?
and subclasses are like dogs and puppies ...the puppies following the dog and the dog leading the puppies?
sorry about my translations...A: this is the only way my brain memorizes stuff and B: my highschool years werent filled with actual learning due to my autisum
I really appreciate the help though!