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.

A couple of doubts...

Hey guys! Everything nice?

I'm creating this topic because I have a couple of doubts.... If you could help it would be great. ;)

- Can you indicate me some good script or something like that, to introduce a little introduction before the title screen? Something just to put "Mark Productions" in the middle of the screen, "SquareSoft" style. I've searched everywhere but I can't find any! :S

- The next doubt: When I have my game finished, can I register it, register it's brand and stuff? And can i send it to some games company?

Cheers! ;)
 

Jason

Awesome Bro

So I've just been looking for the Splash Screen script I have, and I found it, it allows you to use 3 images to introduce your game;

Code:
 

class Game_Splash

  def initialize

    s1 = Sprite.new

    s1.bitmap = RPG::Cache.picture("Splash1")

    s1.opacity = 255

    s2 = Sprite.new

    s2.bitmap = RPG::Cache.picture("Splash2")

    s2.opacity = 0

    s3 = Sprite.new

    s3.bitmap = RPG::Cache.picture("Splash3")

    s3.opacity = 0

    @sprites = [s1,s2,s3]

    @wait = 5*Graphics.frame_rate

    @tran = 2*Graphics.frame_rate

    @current = 0

  end

  

  def main

    Graphics.transition

    loop do

      Graphics.update

      Input.update

      update

      if $scene != self

        break

      end

    end

    @sprites.each {|s| s.dispose}

  end

  

  def update

    @sprites.each {|s| s.update}

    if @wait > 0

      @wait -= 1

    elsif @tran > 0

      @tran -= 1

      @sprites[@current].opacity -= 10

      @sprites[@current+1].opacity += 10 if @current != 2

    end

    if @wait <= 0 and @tran <= 0

      if @current < 2

        @wait = 5*Graphics.frame_rate

        @tran = 2*Graphics.frame_rate

        @current += 1

      else

        $scene = Scene_Title.new

      end

      return

    end

  end

end

 

The instructions are easy, just make sure you have three images in your Game/Pictures folder named;
Splash1
Splash2
Splash3

And it'll play them in order.

Hope that's what you want !

Edit -

Forgot to tell you something else, in your "Main" script, on line 11, it should say;

$scene = Scene_Title.new

Change it to this;

$scene = Game_Splash.new

Then you should be good to go !
 

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