09-18-2005, 01:00 PM
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
No support is given. If you are the owner of the thread, please contact administration.
To use it paste the script before Main and follow the steps inside the script:
Code:
#-----------------------------------------------------------------
# Slipknot's Intro
# to use it search in the Scene_Title:
# $scene = Scene_Map.new
# and change it for
# $scene = SlipknotIntro.new
#-----------------------------------------------------------------
class SlipknotIntro
#-----------------------------------------------------------------
def main
@txt = IntroTxt.new(480); @time = 2; @txt.contents_opacity = 255
Graphics.transition
loop do
Graphics.update; Input.update; update
if $scene != self; break; end
end
Graphics.freeze; @txt.dispose
end
#-----------------------------------------------------------------
def update
@txt.update
if @time > 0; @time -= 1
else; @time = 2; @txt.y -= 1; end
if @txt.y < 162; dissapear = false; end #change @txt.y < to the number that you want the text
#start to dissapear
if dissapear == false; @txt.contents_opacity -= 1; end
if @txt.contents_opacity < 15; $scene = Scene_Map.new; end
if Input.trigger?(Input::B)
sleep 0.05; $scene = Scene_Map.new; return
end
if Input.repeat?(Input::UP); @txt.y -= 5; end
end
#-----------------------------------------------------------------
end
#-----------------------------------------------------------------
class IntroTxt < Window_Base
#-----------------------------------------------------------------
def initialize(y=0)
super(0,y,640,480); self.opacity = 0
self.contents = Bitmap.new (width - 32, height - 32)
self.contents.font.name = $defaultfonttype
self.contents.clear
t1="In the beginning doesn't exist the intro. The common"
t2="people use the text boxes to make one, but it was ugly"
t3="and complicate to edit."
t4="Now, a guy called Slipknot make a simple script to make"
t5="a nice intro easy to edit."
t6="With that script you can make a dissapering text and make"
t7="a slow or fast movement."
o=26 #Change the distance of the text
self.contents.draw_text(0,0,608,o,t1,1)
self.contents.draw_text(0,o,608,o,t2,1)
self.contents.draw_text(0,o*2,608,o,t3,1)
self.contents.draw_text(0,o*4,608,o,t4,1)
self.contents.draw_text(0,o*5,608,o,t5,1)
self.contents.draw_text(0,o*7,608,o,t6,1)
self.contents.draw_text(0,o*8,608,o,t7,1)
end
#-----------------------------------------------------------------
end