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 :
what am i doing wrong? :-/
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? :-/