Ok, I'm just trying to follow dubealex's tutorial, and i've reached a snag that I don't know WHY I've hit one.
snippet of code is
class MyThing < Window_Base
def initialize
super(0, 0, 200, 200)
end
end
script call inside an event = MyThing.new
Pretty straightforward, right?
The error rmxp gives me is this : TypeError occured undefined superclass 'Window_Base'
I get what the error means. I DON'T know why the script isn't recognizing that Window_Base is a class and that it should be able to be extended. I've even copied code from other classes that extend Window_Base, and just changed the class name to a random name i make up, then instantiate it with .new . And it STILL doesn't freaking work!
Any ideas???
Never mind. I let my natural programming instinct think for half a second.
Stupid thing has to be below any class it inherits from.
snippet of code is
class MyThing < Window_Base
def initialize
super(0, 0, 200, 200)
end
end
script call inside an event = MyThing.new
Pretty straightforward, right?
The error rmxp gives me is this : TypeError occured undefined superclass 'Window_Base'
I get what the error means. I DON'T know why the script isn't recognizing that Window_Base is a class and that it should be able to be extended. I've even copied code from other classes that extend Window_Base, and just changed the class name to a random name i make up, then instantiate it with .new . And it STILL doesn't freaking work!
Any ideas???
Never mind. I let my natural programming instinct think for half a second.
Stupid thing has to be below any class it inherits from.