Hello, i have created a custom class to test with and am making another class which inherits from it. However i cannot use inherited members, for example, the base class has an int. When i try to set that int however:
it doesn’t exist in the current context? odd. so i tried:
so now it does exist?
Hard to tell because your screenshot doesn’t show the surrounding code, but I think your problem is just that you’re dumping code directly inside the class instead of inside a method in the class.
theres not really any surrounding code yet as far as that script goes, however it derives from this one:
Well, like I said, you can’t can’t write statements like assignment unless it’s inside a method.
Oh, haha, i cant believe i forgot that, silly me. I haven’t worked with custom classes before, and i guess that somehow slipped my mind,