Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Having problem putting Window_Base as a superclass

Status
Not open for further replies.

Clay19

Member

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.
 
This topic has been resolved. If Clay19 or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top