Code:
#===================================================
# ■ Credit Script 1.1
#===================================================
# Author: Acoole
#Date: 24/10/06
#Version 1.1
#Thank you: Dubealex for the tutorial
#Started from the beging again and got it so it starts up
#at the start of the game now[cant] with SDK.I Had to re-write because i had lost
#the script because my website went down.
#What for?
#Bored of text based credits?want your credits to look good!. This is the script for you
#===================================================
#------------------------------------------------------------------------------
# * SDK Log Script
#------------------------------------------------------------------------------
SDK.log("Credit Script 1.1", "Acoole", 1.1, "24.10.06")
#------------------------------------------------------------------------------
# * Begin SDK Enable Test
#------------------------------------------------------------------------------
if SDK.state("Credit Script 1.1") == true
class Scene_Credits_menu1
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------------------------------------
def main
@window_a1=Window_a1.new
@window_a1.update(false)
@window_a1.x=200
@window_a1.y=100
@window_a3=Window_a3.new
@window_a3.update(" ")
s1 = "Owner"
s2 = "Scripter"
s3 = "Designer"
s4 = "Music"
s5 = "Close"
@window_a2 = Window_Command.new(200, [s1,s2,s3,s4,s5])
@window_a2.y=100
@window_a2.height=380
@window_a2.index = @menu_index
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@window_a1.dispose
@window_a2.dispose
@window_a3.dispose
end
#--------------------------------------------------------------------------------------------------------
def update
@window_a2.update
case @window_a2.index
when 0
@window_a3.update("Acoole") #Type who owns it in the inverted commas - s1
when 1
@window_a3.update("Acoole") #Type who scripted it in the inverted commas -s2
when 2
@window_a3.update("Acoole") #Type who designed[Graphics,interface] it in the inverted commass - s3
when 3
@window_a3.update("Acoole") #Type who wrote/made the music it in the inverted commass - s4
when 4
@window_a3.update("Exit the credits and return to the menu") #Exit[Do what you want it to say here] - s5
end
if Input.trigger?(Input::C)
case @window_a2.index
when 0
owner
when 1
scripter
when 2
designer
when 3
music
when 4
close
end
end
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
$game_map.autoplay
end
end
#--------------------------------------------------------------------------------------------------------
def owner
@window_a1.update(true)
end
def scripter
@window_a1.update(true)
end
def designer
@window_a1.update(true)
end
def music
@window_a1.update(true)
end
def close
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
$game_map.autoplay
end
#--------------------------------------------------------------------------------------------------------
end
class Window_a1 < Window_Base
def initialize
super(0, 0, 440,380)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 20
end
def update(content)
if content == false
self.contents.clear
self.contents.draw_text(0, 0, 120, 32, "")
else
self.contents.clear
self.contents.draw_text(0, 0, 440, 32, "")
end
end
end
class Window_a3 < Window_Base
def initialize
super(0, 0, 640,100)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 20
end
def update(help_text)
self.contents.clear
self.contents.draw_text(0, 0, 440, 32, help_text)
end
#------------------------------------------------------------------------------
# * End SDK Enable Test
#------------------------------------------------------------------------------
end
end