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.

Logo Script Help

I am using this:
#==============================================================================
# â–  Credits Script
#------------------------------------------------------------------------------
# By Team Genius for bLiTzZ
# It's the same as the logo script, but it just has more 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 = 0
#here for audio
Audio.bgm_play ("Audio/BGM/Three Days Grace - Time of Dying", 85, 125)
@sprite = Sprite.new
#here for the first logo
@sprite.bitmap = RPG::Cache.title("Back")
$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 == 1
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("website")
elsif @var == 291
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("by")
elsif @var == 581
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("copyright")
elsif @var == 871
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("bojstitlescreen2")
elsif @var == 872
$logo = false
$scene = Scene_Title.new
end
end
end

And I have all the scenes mad and everything but nothing happens. What do I do?
 
Try this...
Go to Main, and replace this:
Code:
$scene = Scene_Title.new
With this:
Code:
$scene = Credits.new

It'll show the credits before the title screen, if you want something different, explain it.
 

Eilei

Sponsor

Your Credits class isn't properly disposing of all those sprites.

First, shoot whoever wrote this for not indenting. Then add the lines in red:

Code:
#================================================= =============================
# â–  Credits Script
#------------------------------------------------------------------------------
# By Team Genius for bLiTzZ
# It's the same as the logo script, but it just has more 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 " "
# 3o 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 = 0
#here for audio
Audio.bgm_play ("Audio/BGM/Three Days Grace - Time of Dying", 85, 125)
@sprite = Sprite.new
#here for the first logo
@sprite.bitmap = RPG::Cache.title("Back")
$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
[color=red]if not @sprite.nil? and not @sprite.disposed?
  @sprite.dispose
end[/color]
end
#--------------------------------------------------------------------------
# update
#--------------------------------------------------------------------------
def update
if Input.trigger?(Input::B) or Input.trigger?(Input::C)
$logo = false
$scene = Scene_Title.new
elsif @var == 1
[color=red]@sprite.dispose[/color]
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("website")
elsif @var == 291
[color=red]@sprite.dispose[/color]
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("by")
elsif @var == 581
[color=red]@sprite.dispose[/color]
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("copyright")
elsif @var == 871
[color=red]@sprite.dispose[/color]
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("bojstitlescreen2")
elsif @var == 872
$logo = false
$scene = Scene_Title.new
end
end
end

I think that'll work, though I haven't tested it, or any such frilly business.
 

Eilei

Sponsor

bojjenclon;282473 said:
First off thanks. Second can't I just copy the whole script? Or is that just to show the updates?

Yeah, you could copy the whole script. I was just trying to point out why it wasn't working so you'd learn something.
 

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