Heaven
Messages : 40 Date d'inscription : 18/09/2013 Age : 23 Localisation : Alpes Maritimes
| Sujet: RMVXAce - JMB Title Mer 23 Oct - 13:53 | |
| Yo ! Voici un script qui va vous permettre de rendre transparent le windowskin de votre écran titre. Auteur : JMB GISOKA Screen :Script : - Code:
-
#============================================================================== # ■ Created by JMB GISOKA #------------------------------------------------------------------------------ # RGSS 3 Lenguaje Game Scripting #==============================================================================
class Scene_Title < Scene_Base #-------------------------------------------------------------------------- # ● Scena de Titulo #-------------------------------------------------------------------------- def start super SceneManager.clear Graphics.freeze create_background create_foreground create_command_window play_title_music @gisoka = JMB_GISOKA.new(0,0) end #-------------------------------------------------------------------------- # ● Rapidez de la Transiccion #-------------------------------------------------------------------------- def transition_speed return 20 end #-------------------------------------------------------------------------- # ● Cuando Termina la transiccion #-------------------------------------------------------------------------- def terminate super SceneManager.snapshot_for_background dispose_background dispose_foreground @gisoka.dispose end #-------------------------------------------------------------------------- # ● Crea los Fondos #-------------------------------------------------------------------------- def create_background @sprite1 = Sprite.new @sprite1.bitmap = Cache.title1($data_system.title1_name) @sprite2 = Sprite.new @sprite2.bitmap = Cache.title2($data_system.title2_name) center_sprite(@sprite1) center_sprite(@sprite2) end #-------------------------------------------------------------------------- # ● Crea los fondos de afuera #-------------------------------------------------------------------------- def create_foreground @foreground_sprite = Sprite.new @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height) @foreground_sprite.z = 100 draw_game_title if $data_system.opt_draw_title end #-------------------------------------------------------------------------- # ● Crea el titulo del Juego #------------------------------------------------------------------------- def draw_game_title @foreground_sprite.bitmap.font.size = 48 rect = Rect.new(0, 0, Graphics.width, Graphics.height / 2) @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1) end #-------------------------------------------------------------------------- # ● Acepta los Fondo #-------------------------------------------------------------------------- def dispose_background @sprite1.bitmap.dispose @sprite1.dispose @sprite2.bitmap.dispose @sprite2.dispose end #-------------------------------------------------------------------------- # ● Acepta los Fondos de Afuera #-------------------------------------------------------------------------- def dispose_foreground @foreground_sprite.bitmap.dispose @foreground_sprite.dispose end #-------------------------------------------------------------------------- # ● Centra los Sprite #-------------------------------------------------------------------------- def center_sprite(sprite) sprite.ox = sprite.bitmap.width / 2 sprite.oy = sprite.bitmap.height / 2 sprite.x = Graphics.width / 2 sprite.y = Graphics.height / 2 end #-------------------------------------------------------------------------- # ● Crea los comandos de la window #-------------------------------------------------------------------------- def create_command_window @command_window = Window_TitleCommand.new @command_window.set_handler(:new_game, method(:command_new_game)) @command_window.set_handler(:continue, method(:command_continue)) @command_window.set_handler(:shutdown, method(:command_shutdown)) @command_window.opacity = 0 end #-------------------------------------------------------------------------- # ● Cierra los comandos de la window #-------------------------------------------------------------------------- def close_command_window @command_window.close update until @command_window.close? end #-------------------------------------------------------------------------- # ● crea el comando new game #-------------------------------------------------------------------------- def command_new_game DataManager.setup_new_game close_command_window fadeout_all $game_map.autoplay SceneManager.goto(Scene_Map) end #-------------------------------------------------------------------------- # ● cre el comando new game #-------------------------------------------------------------------------- def command_continue close_command_window SceneManager.call(Scene_Load) end #-------------------------------------------------------------------------- # ● crea el comando salir del juego #-------------------------------------------------------------------------- def command_shutdown close_command_window fadeout_all SceneManager.exit end #-------------------------------------------------------------------------- # ● Hace reproducir la musica #-------------------------------------------------------------------------- def play_title_music $data_system.title_bgm.play RPG::BGS.stop RPG::ME.stop end end #-------------------------------------------------------------- # Info Creator #---------------------------------------------------------------- class JMB_GISOKA < Window_Base #-------------------------------------------------------------------------- def initialize(x, y) super(x, 360, 190, WLH + 32) refresh end #-------------------------------------------------------------------------- def refresh self.contents.clear self.contents.draw_text(0, 0, 160, WLH , "Created by ...", 1) end end Heav'n | |
|
Neko Fondateur
Messages : 184 Date d'inscription : 14/07/2013 Age : 25 Localisation : Ici, la plupart du temps.
| Sujet: Re: RMVXAce - JMB Title Mer 23 Oct - 13:56 | |
| Le script me semble un peu long pour un truc que tu peux modifier dans l'éditeur de scripts de bases x) Merci du partage^^ | |
|
Heaven
Messages : 40 Date d'inscription : 18/09/2013 Age : 23 Localisation : Alpes Maritimes
| Sujet: Re: RMVXAce - JMB Title Mer 23 Oct - 13:56 | |
| Ah euh, ouais c'pas faux x)
Heav'n | |
|
Neko Fondateur
Messages : 184 Date d'inscription : 14/07/2013 Age : 25 Localisation : Ici, la plupart du temps.
| Sujet: Re: RMVXAce - JMB Title Mer 23 Oct - 13:57 | |
| Je pense que je ferai un p'tit tutoriel pour expliquer comment faire sans utiliser de scripts^^ | |
|
Contenu sponsorisé
| Sujet: Re: RMVXAce - JMB Title | |
| |
|