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.

How to fade black in scene?

I want to simulate that the game is loading by fading to black > wait about 10 frame > and resume (fade into destination scene) when:

1.Select "Load Game" from title
2.Cancel in Load Game scene back to title
3.Select and loaded a save file to the map scene
4.When enter the main menu
5.When exit the main menu to map scene

Maybe can you give me an idea to do first one? What to add to Scene_Title & Scene_Load and add to which lines?

If I got an idea I might can do with others

Thanks!!
 
Try this, i think its easy to understand ^^
Code:
class Scene_Title

  alias fadeblack_main main

  def main

    Graphics.freeze

    Graphics.transition(10)

    

    fadeblack_main

 

    Graphics.transition(10)

    Graphics.freeze

  end

end

 

class Scene_Menu

  alias fadeblack_main main

  def main

    Graphics.freeze

    Graphics.transition(10)

    

    fadeblack_main

 

    Graphics.transition(10)

    Graphics.freeze

  end

end
 

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