08-30-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.
I know that A LOT of people are doing Final Fantasy VII, VIII, and IX remakes and sequesls ect.
So I whipped up this tastly little script last night.
Its the FULLY ANIMATED opening Credits For Final Fantasyt VII.
I even added the music for effect.
Now 1 this is that the 1st little bit of the def update is badly coded.
Its only about 10 lines but should have been shorter.
Anyways heres the script itself.
Code:
#=====================================================
# - Final Fantasy VII opening Credits Script
# - Written By Squall789
#=====================================================
# - To use this script in another Project copy the script into a new Page on
# - The script Editor.
# - Then in Main replace "$scene = Scene_Title.new" with "$scene = FFVII_Credits.new"
class FFVII_Credits # - Setting the class
def main
$data_system = load_data("Data/System.rxdata")
$game_system = Game_System.new
# - Drawing up the Background for Scene FFVII_Credits
@Background = Sprite.new
@Background.bitmap = RPG::Cache.picture("Credits_Back")
@Background.opacity = 255
@sprite1 = Window1.new # - Producer Name
@sprite1.x = 120
@sprite1.y = 320
@sprite2 = Window2.new # - Producer Title Window (sprite2 = Producer)
@sprite2.x = 321
@sprite2.y = - 60
# - Plays the Background Music (Obviously!)
Audio.bgm_play("Audio/BGM/" + "01 Prelude", 100, 100)
@sprite3 = Window3.new # - Main Scripter
@sprite3.x = - 200
@sprite3.y = 60
@sprite4 = Window4.new # - Main Scripter Name (Squall789)
@sprite4.x = 20
@sprite4.y = 458
@sprite5 = Window5.new # - Director Name
@sprite5.x = 170
@sprite5.y = - 120
@sprite6 = Window6.new # - Director Title
@sprite6.x = - 120
@sprite6.y = 120
@sprite7 = Window7.new # - Main Programmer Title
@sprite7.x = 680
@sprite7.y = 110
@sprite8 = Window8.new # - Main programmer name
@sprite8.x = 450
@sprite8.y = - 90
@sprite9 = Window9.new # - Composer name
@sprite9.x = - 150
@sprite9.y = 400
@sprite10 = Window10.new # - Composer Title
@sprite10.x = 30
@sprite10.y = 540
@sprite11 = Window11.new # - Artist Battles Ect... Title!
@sprite11.x = 680
@sprite11.y = 90
@sprite12 = Window12.new # - Artist Name ect...
@sprite12.x = 460
@sprite12.y = - 90
@sprite13 = Window13.new # - Special thanks Itself!
@sprite13.x = - 142
@sprite13.y = 320
@sprite14 = Window14.new # - Special thanks Names
@sprite14.x = 320
@sprite14.y = - 90
@Button = Window15.new
@Button.x = 220
@Button.y = 210
@Button.contents_opacity = 0
@Button.visible = false
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@Background.dispose
@sprite1.dispose
@sprite2.dispose
@sprite3.dispose
@sprite4.dispose
@sprite5.dispose
@sprite6.dispose
@sprite7.dispose
@sprite8.dispose
@sprite9.dispose
@sprite10.dispose
@sprite11.dispose
@sprite12.dispose
@sprite13.dispose
@sprite14.dispose
@Button.dispose
end
def update # - Longer than you thought aint it!
# - Message to ALL n00bs
# - Sorry I made things look so complicated
if @sprite1.x > 119
@sprite1.x += 2
end
if @sprite1.x > 319
@sprite1.x = 321
end
if @sprite1.x == 321
@sprite2.y += 2
end
if @sprite2.y > 298
@sprite2.y = 299
end
if @sprite2.y == 299 and
@sprite1.x == 321
@sprite1.contents_opacity -= 2
@sprite2.contents_opacity -= 2
end
if @sprite1.contents_opacity < 1
@sprite1.active = false
@sprite2.active = false
@sprite3.x += 1
@sprite4.y -= 2
if @sprite4.y < 40
@sprite4.y = 40
end
end
if @sprite3.x > 89
@sprite3.x = 90
@sprite3.contents_opacity -= 2
@sprite4.contents_opacity -= 2
end
if @sprite3.contents_opacity < 1
@sprite3.active = false
@sprite4.active = false
@sprite5.y += 1
@sprite6.x += 1
if @sprite5.y > 137 and
@sprite6.x > 137
@sprite5.y = 138
@sprite6.x = 138
end
end
if @sprite5.y == 138 and
@sprite6.x == 138
@sprite5.contents_opacity -= 2
@sprite6.contents_opacity -= 2
end
if @sprite5.contents_opacity < 1
@sprite7.x > 639
@sprite8.y < - 89
@sprite8.y += 1
@sprite7.x -= 1
end
if @sprite7.x < 461
@sprite7.x = 460
@sprite8.y = 130
@sprite7.contents_opacity -=2
@sprite8.contents_opacity -=2
end
if @sprite8.contents_opacity < 1
@sprite9.x += 1
@sprite10.y -= 1
end
if @sprite10.y < 381
@sprite10.y = 381
@sprite9.x = 10
@sprite9.contents_opacity -= 2
@sprite10.contents_opacity -= 2
end
if @sprite10.contents_opacity < 1
@sprite11.x > 639
@sprite12.y < - 89
@sprite12.y += 1
@sprite11.x -= 1
end
if @sprite11.x < 461
@sprite11.x = 460
@sprite12.y = 130
@sprite11.contents_opacity -=2
@sprite12.contents_opacity -=2
end
if @sprite12.contents_opacity < 1
@sprite13.x += 1
@sprite14.y += 1
end
if @sprite13.x > 300
@sprite13.x = 302
@sprite14.y = 341
@sprite13.contents_opacity -= 2
@sprite14.contents_opacity -= 2
end
if @sprite14.contents_opacity < 1
@Button.visible = true
@Button.contents_opacity +=1
end
if Input.trigger?(Input::C)
$scene = Scene_Title.new
end
end
end# end of class
#===================================================
# - Window_Text (Contains the Credits themselves)
#===================================================
class Your_Scene
def main
Graphics.freeze
@window1.dispose
@window2.dispose
@window3.dispose
@window4.dispose
@window5.dispose
@window6.dispose
@window7.dispose
@window8.dispose
@window9.dispose
@window10.dispose
end
end
#===================================================
# - Window Producer name text begins
#===================================================
class Window1 < Window_Base
def initialize
super(0, 0, 210,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 110, 33, "Squall789")
end
end
#===================================================
# - Window Producer Title Text Begins
#===================================================
class Window2 < Window_Base
def initialize
super(0, 0, 140,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Arial Black"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 133, 33, "Producer")
end
end
#===================================================
# - Window Main Scripter Name text begins
#===================================================
class Window3 < Window_Base
def initialize
super(0, 0, 140,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 133, 33, "Squall789")
end
end
#===================================================
# - Window Mian Scripter Title Text Begins
#===================================================
class Window4 < Window_Base
def initialize
super(0, 0, 290,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Arial Black"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 290, 33, " Main Scripter")
end
end
#===================================================
# - Window Director Name Text Begins
#===================================================
class Window5 < Window_Base
def initialize
super(0, 0, 140,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 133, 33, "Squall789")
end
end
#===================================================
# - Window Director Name Title Begins
#===================================================
class Window6 < Window_Base
def initialize
super(0, 0, 140,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Arial Black"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 133, 33, "Director")
end
end
#===================================================
# - Window Main Programmer Title Begins
#===================================================
class Window7 < Window_Base
def initialize
super(0, 0, 210,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Arial Black"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 210, 33, "Main Programmer")
end
end
#===================================================
# - Window Main Programmer Name Begins
#===================================================
class Window8 < Window_Base
def initialize
super(0, 0, 180,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 178, 33, " Squall789")
end
end
#===================================================
# - Window Composer Title Begins
#===================================================
class Window9 < Window_Base
def initialize
super(0, 0, 240,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 233, 33, " Nobuo Uematsu")
end
end
#===================================================
# - Window Composer name Begins
#===================================================
class Window10 < Window_Base
def initialize
super(0, 0, 240,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Arial Black"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 233, 33, "Composer")
end
end
#===================================================
# - Window Battle Script designer Title Begins
#===================================================
class Window11 < Window_Base
def initialize
super(0, 0, 240,240)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Arial Black"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 133, 33, "Character Design &")
self.contents.draw_text(0, 0, 143, 63, "Battle Visual Director")
end
end
#===================================================
# - Window Battle Script Designer Name Begins
#===================================================
class Window12 < Window_Base
def initialize
super(0, 0, 240,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 233, 33, "Tetsuya Nomura")
end
end
#===================================================
# - Window Special thanks Begins
#===================================================
class Window13 < Window_Base
def initialize
super(0, 0, 340,240)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Arial"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 333, 33, "Special Thanks")
end
end
#===================================================
# - Window Special Thanks Names begins
#===================================================
class Window14 < Window_Base
def initialize
super(0, 0, 240,60)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 22
self.opacity = 0
self.contents.draw_text(0, 0, 133, 33, "Squaresoft")
end
end
#===================================================
# - This Creates the "Please Press Start" Screen
#===================================================
class Window15 < Window_Base
def initialize
super(0, 0, 440,360)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 28
self.opacity = 0
self.contents.draw_text(0, 0, 433, 33, "Thankyou For watching")
self.contents.font.size = 24
self.contents.draw_text(0, 20, 433, 33, "FFVII Opening Credits script")
self.contents.draw_text(0, 40, 433, 33, "By Squall789")
end
end
And replace this
Code:
$scene = Scene_Title.new
Code:
$scene = FFVII_Credits.new