denzelsoto
Member
I've been having a problem with Credits Menu
it doesn't scroll so i can't see everything i got 38 lines
it doesn't scroll so i can't see everything i got 38 lines
Code:
#===============================================================================
# * Credits Menu
#-------------------------------------------------------------------------------
# A credits menu that scrolls up the Title Screen. Useful for a professional
# looking game.
#===============================================================================
class Window_Scroll < Window_Base
attr_accessor :credits
def initialize
super(0,1,640,480)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
self.back_opacity = 0
initcredit
refresh
end
def initcredit
#PUT Credits HERE
@credits = Hash.new("")
@credits[0] = "La Salle"
@credits[1] = " "
@credits[2] = "Created"
@credits[3] = "by"
end
def refresh
self.contents.clear
self.contents.font.color = Color.new(73,73,80)
self.contents.font.size = 12
self.contents.font.name = 'Tahoma'
for i in 0...@credits.size
self.contents.draw_text(0, 1, 480, (i * 38) + 38, @credits[i].to_s)
end
end
end
class Scene_Title
alias mains89 main
alias updates89 update
def main
mains89
@scroll_window.dispose
end
def update
@scroll_window.update
updates89
end
end