Look how my script looks like:
First script:
class Window_Options < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(50, 50, 320, 240)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = normal_color
self.contents.font.size = 20
cx = contents.text_size("Options").width
self.contents.draw_text(20, 20, cx, 32, "Options")
end
def update
@window.update
end
end
Second script:
#==============================================================================
# * Scene_Options
#==============================================================================
class Scene_Options
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
@window = Window_Options
Graphics.transition
loop do
Graphics.update
Input.update
if $scene != nil
update
break
end
end
Graphics.freeze
@window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
@window.update
end
end
In Scene_Options is update method, but the same error appears.