Gaming@NINA

Ending IGN's monopoly, one play at a time

Forums · Developer Logo Script (yes this one does work)

-tails07-!imx

0 +0

Sep 12 '05

This is my third rgss script. It shows some pictures, developer logo, credits etc before you get to the 'new game' selection part of the game.


To use this script

First make a new class above the main class called Scene_Introduction (Case Sesitive) and add the following script:
[code]#==============================================================================
# ■ Developer Logo Script
#------------------------------------------------------------------------------
#  Made by Tails07
#==============================================================================
class Scene_Begin 
def main
  $data_system        = load_data("Data/System.rxdata")
$game_system = Game_System.new
        @timer = 0
        @stop_pi = false
        @transition = false
        @closing = false
        @end_intro = false
        @scene_to_title  = false
  $game_system.bgm_play($data_system.title_bgm)
@wait = 0
  @sprite1 = Sprite.new
  @sprite1.bitmap = RPG::Cache.picture("splash")
  @sprite1.opacity = 255
  @sprite2 = Sprite.new
  @sprite2.bitmap = RPG::Cache.picture("splash1")
  @sprite2.opacity = 0
  #          Audio.bgm_play("Audio/BGM/" + "Music 4", 90, 100)
  @sprite3 = Sprite.new
  @sprite3.bitmap = RPG::Cache.picture("splash2")
  @sprite3.opacity = 0
  @sprite4 = Sprite.new
  @sprite4.bitmap = RPG::Cache.picture("splash3")
  @sprite4.opacity = 0
  @sprite5 = Sprite.new
  @sprite5.bitmap = RPG::Cache.picture("main")
  @sprite5.opacity = 0
  @intro = Sprite.new
  @intro.bitmap = RPG::Cache.picture("start")
  @intro.x = 150
  @intro.y = 270
  @intro.z = 500
  @intro.opacity = 0   
  Graphics.transition
  loop do
    Graphics.update
    Input.update
    update
  if @sprite5.opacity == 255 and
    @sprite5.z == 9999;
    @wait += 1.5
  end
 
    if @wait >= 1000
        $scene = Scene_Introduction.new
      @wait = 0
    end
    if $scene != self
      break
    end
  end
  Graphics.freeze
  @sprite1.dispose
  @sprite2.dispose
  @sprite3.dispose
  @sprite4.dispose
  @sprite5.dispose
  @intro.dispose
end

def update
 
    if Input.trigger?(Input::C) and
      @sprite5.opacity == 255 and
      @sprite5.z == 9999;
      @scene_to_title = true
    end
      if Input.trigger?(Input::C)
        @end_intro = true
        @sprite5.opacity = 255
        @sprite5.z = 9999
        @intro.z = 99999
        @intro.opacity = 10
      return
    end

  if @scene_to_title
    $scene = nil
    $scene = Scene_Title.new
  end
  unless @end_intro
    @timer += 1
  else
    @timer = 0
  end
  @sprite1.update
  @sprite2.update
  @sprite3.update
  @sprite4.update
  @sprite5.update
  @intro.update
  if @end_intro
  if @intro.opacity < 250
    @intro.opacity += 2
    return
  end
  if @intro.opacity == 250
    loop do
      Graphics.update
      Input.update
      @intro.update
      @intro.opacity -= 2
      break if @intro.opacity == 10
      next
    end
  end
end
  unless @end_intro
  graphic_transition
end
end
#-------------------------------------------------------------- 
def graphic_transition
  if @sprite1.opacity > 0
    @sprite1.opacity -= 2
  end
  if @sprite1.opacity <= 70 and
    @sprite1.opacity != 85 and
    @timer >= 85 and
    @timer < 185 and
    @sprite1.opacity != 0 and
    @timer != 300
    @sprite1.opacity = 70
      @sprite2.opacity += 2
    end
      if @sprite2.opacity >= 150
      @sprite1.opacity -= 1
    elsif @sprite2.opacity <= 70 and
      @sprite2.opacity != 85 and
      @sprite2.opacity != 0 and
      @timer >= 280 and
      @timer < 410 and
      @timer != 663
      @sprite2.opacity = 60
      @sprite3.opacity += 2
    end
    if @sprite1.opacity <= 0
    @sprite2.opacity -= 2
  end

  if @sprite3.opacity >= 170
    @sprite2.opacity -= 1
        elsif @sprite3.opacity <= 70 and
      @sprite3.opacity != 85 and
      @sprite3.opacity != 0 and
      @timer >= 528 and
      @timer < 678 and
      @timer != 878
      @sprite3.opacity = 70
    end
 
    if @sprite2.opacity <= 0 and
    @sprite1.opacity <= 0 and
    @timer >= 540;
      @sprite3.opacity -= 2
    end
   
  if  @sprite3.opacity <= 40 and
    @timer >= 620
    @transition = true
  end
        if  @transition == true and
          @sprite3.opacity <= 10 and
          @end_intro == false
          loop do
            Graphics.update
            Input.update
    @sprite4.opacity += 1
    break if @sprite4.opacity >= 200
  end
    @closing = true
  end
 
  if  @closing
    loop do
      Graphics.update
      Input.update
    @sprite4.opacity -= 2
    break if @sprite4.opacity <= 10
  end
  @sprite4.opacity = 0
  @sprite4.z = 0
    @end_intro = true
  end
 
  if @end_intro == true and
    @sprite4.opacity <= 2
    @sprite5.opacity = 255
    @sprite5.z = 9999
    @intro.z = 99999
    @intro.opacity = 10
    @timer = 0
  end
end



end[/code]

Then go to the main class and change
the part that reads

[code]$scene = Scene_Title.new[/code]

to

[code]$scene = Scene_Begin.new[/code]

You will also need to stick 6 pictures in the Picture folder called logo1, logo2, logo3, logo4, title and press-start. (They will appear in that order)

Credit Must be Given to Tails07

Tried and Tested! ;)

Enjoy

Rating: 0

snuffles

0 +0

Sep 12 '05

cool, this looks nice i might give it a shot
Rating: 0

-tails07-!imx

0 +0

Sep 12 '05

Oh I forgot to say the 6 pictures must have the extention .png, .jpg, .gif or .bmp
Rating: 0

snuffles

0 +0

Sep 12 '05

what kind do the pictures have to be of?
i.e screenshots of the game and such
Rating: 0

-tails07-!imx

0 +0

Sep 12 '05

developer logos so like you could have one with the name of the team that made the game, one with your name etc.

And im sure you can work out 'title' and 'press-start' for your self.
Rating: 0

lord_morgoth!imx

0 +0

Sep 14 '05

Is this for XP or 2k3?
Rating: 0

hmaddict

0 +0

Sep 14 '05

XP, seeing as only XP uses scripts.
Rating: 0

lord_morgoth!imx

0 +0

Sep 19 '05

oh..... my mistake.
Rating: 0