Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Credits script, need help.

A long time ago, Team_Genius made me this cool script. with this you can show mutiple pictures with music before the title screen, so it looks like credits. i didnt use rmxp a long time, and now i want to start a new project, and want to use the code again. I paste it above main, but when i testplay, nothing changes. itjust starts with the titlescreen. It used to work in my previous project.

here is the script :
PHP:
#==============================================================================
# â–  Credits Script
#------------------------------------------------------------------------------
# By Team Genius  
# It's the same as the logo script, but it just has 14 logo's
#==============================================================================
# How to Use 
# 1:Put the logo pictures in the Titles map 
# 2:Go to line 20 and fill in the name of the picture between the " " 
# 3:Do the same for the second logo but on line 54 
# 4:If you want to change the song played change what's between ""  on line 18
# 5:To skip the logo's press ESC or ENTER
class Credits
#--------------------------------------------------------------------------
# initialize
#--------------------------------------------------------------------------
  def initialize 
    @var = 1
  #here for audio
    Audio.bgm_play ("Audio/BGM/060-Slow03", 90, 100)
  @sprite = Sprite.new
  #here for the first logo
  @sprite.bitmap = RPG::Cache.title("001-Title01")
    $logo = true
  end
#--------------------------------------------------------------------------
# main
#--------------------------------------------------------------------------
  def main 
   Graphics.transition
    # loop
    loop do
      # update
      Graphics.update
      # input
      Input.update
      #update
      update
     @var = @var.to_i + 1 
     #break
  if $scene != self
    break
   end
    end
Graphics.freeze
# dispose
end
#--------------------------------------------------------------------------
# update
#--------------------------------------------------------------------------
def update 
  if Input.trigger?(Input::B) or Input.trigger?(Input::C)
    $logo = false 
    $scene = Scene_Title.new
  elsif @var == 130 
    @sprite = Sprite.new
    @sprite.bitmap = RPG::Cache.title("001-Title01") 
  elsif @var == 260 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 290 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01") 
  elsif @var == 360 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 460 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 560 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 660 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 760 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 860 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 960 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 1060 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01") 
  elsif @var == 1160 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")
  elsif @var == 1260 
    @sprite = Sprite.new  
    @sprite.bitmap = RPG::Cache.title("001-Title01")  
  elsif @var == 1360
    $logo = false 
    $scene = Scene_Title.new
    end
    end
end

what am i doing wrong? :-/
 
Hey um...did you notice that all the 14 pictures in the script are the same?
lol they all say 001-Title01 which is the default. So you can't really tell if it's doing something.

Also, now adays we have a script to play .avi (movie) files before the title screen.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top