Hi everyone. As some of you may know, that have been in the chat this past day, I have been learning RGSS and have taken a liking to it quite quickly. I know some basic commands, some variable stuff, etc.. But I've been following this tutorial Mr. Mo had written back in 2006 to make windows/menus etc.. SO, I thought I'd follow some of these takes and take some of the code and modify it to my liking to make a silly little menu system, however, I keep getting an error.
Now, here is the code:
################################################################################
# Custom Menu System(CMS) by Ecowolfsteen
################################################################################
class Custom < Window_Base
super(560, 0, 233, 254)
self.contents = Bitmap.new(width - 32, height - 32)
refresh # Calls the refresh function in this class
end
def refresh
self.contents.clear
self.contents.font.color = normal_color
self.contents.font.size = 20
self.contents.draw_text(0, 0, 230, 30, "Menu")
end
#==============================================================================
# * Scene_ShowWindow
#==============================================================================
class Scene_ShowWindow
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
#call the window
@window = Custom.new
# Execute transition
Graphics.transition
# Main loop
loop do
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
# Abort loop if screen is changed
if $scene != self
break
end
end
# Prepare for transition
Graphics.freeze
# Dispose of windows
@window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Update windows
@window.update
end
end
Points for anyone who can find the mistake. Don't hit me, I'm still an RGSS noob. :<
Hi everyone. As some of you may know, that have been in the chat this past day, I have been learning RGSS and have taken a liking to it quite quickly. I know some basic commands, some variable stuff, etc.. But I've been following this tutorial Mr. Mo had written back in 2006 to make windows/menus etc.. SO, I thought I'd follow some of these takes and take some of the code and modify it to my liking to make a silly little menu system, however, I keep getting an error.
Now, here is the code:
Points for anyone who can find the mistake. Don't hit me, I'm still an RGSS noob. :<
Thanks guys. ^.^
Edited by EcowolfsteenShare this post
Link to post
Share on other sites