Bebe Novato
Mensagens : 15 Data de inscrição : 18/12/2007 Idade : 35 Localização : Na RPG Makers Community
| Assunto: [Script]Creditos Qua Dez 19, 2007 5:15 pm | |
| Este script adiciona uma tela de creditos no final do seu jogo (quando você quiser) Configure o Script para colocar as informações desejadas... Creditos no Script - Código:
-
#---------------------------------------------------------#-- #Código: #Script de créditos animado Versão 2.0 #Criado por Doug #----------------------------------------------------------- class Scene_Creditos def initialize(musica) @musica = musica end def main Audio.bgm_stop Audio.me_stop Audio.bgs_stop Audio.se_stop Audio.bgm_play("Audio/BGM/"+@musica) @creditos = Creditos.new @creditos.opacity = 0 cw = @creditos.width ch = @creditos.height @creditos.z = 50 @creditos.x = 160 @creditos.y = -15 Graphics.transition(50) loop do Graphics.update Input.update update if $scene != self break end end Graphics.freeze @creditos.dispose if $scene.is_a?(Scene_Title) Graphics.transition(50) Graphics.freeze end end #-------------------------------------------------------------------------- def update @creditos.update end end #-------------------------------------------------------------------------- class Creditos < Window_Base def initialize super(0,0,320,1200) self.contents = Bitmap.new(width - 35, height - 35) update end def update self.y -= 2 if self.y < -700 $scene = Scene_final.new end self.contents.clear self.contents.font.size = 50 self.contents.font.color = crisis_color self.contents.draw_text(30, 160, 400, 50, "Nome do jogo") self.contents.font.color = system_color self.contents.font.size = 24 self.contents.draw_text(100, 220, 400, 32, "Produzido") self.contents.font.color = normal_color self.contents.draw_text(120, 240, 400, 32, "Seu nome / Sua Equipe") self.contents.font.color = system_color self.contents.draw_text(110, 280, 400, 32, "Scripts") self.contents.font.color = normal_color self.contents.draw_text(120, 300, 400, 32, "1 pessoa") self.contents.draw_text(120, 320, 400, 32, "2 pessoa") self.contents.draw_text(120, 340, 400, 32, "3 pessoa") self.contents.draw_text(120, 360, 400, 32, "") self.contents.draw_text(120, 380, 400, 32, "") self.contents.font.color = system_color self.contents.draw_text(105, 420, 400, 32, "Gráficos") self.contents.font.color = normal_color self.contents.draw_text(120, 440, 400, 32, "1 pessoa") self.contents.draw_text(120, 460, 400, 32, "2 pessoa") self.contents.draw_text(120, 480, 400, 32, "3 pessoa") self.contents.draw_text(120, 500, 400, 32, "") self.contents.draw_text(120, 520, 400, 32, "") self.contents.font.color = system_color self.contents.draw_text(80, 560, 400, 32, "Agradecimentos") self.contents.font.color = normal_color self.contents.draw_text(120, 580, 400, 32, "Doug") self.contents.draw_text(120, 600, 400, 32, "1 pessoa") self.contents.draw_text(120, 620, 400, 32, "2 pessoa") self.contents.draw_text(120, 640, 400, 32, "3 pessoa") self.contents.draw_text(120, 660, 400, 32, "") self.contents.draw_text(120, 680, 400, 32, "") self.contents.draw_text(120, 700, 400, 32, "") end end #-------------------------------------------------------------------------- class Scene_final def main setup_panorama ("greenfundo") setup_anima ("blackfundo") @fim = Sprite.new @fim.bitmap = RPG::Cache.picture("fim") @fim.z = 150 Graphics.transition loop do Graphics.update Input.update update if $scene != self break end end Graphics.freeze @fim.dispose @panorama1.dispose @panorama2.dispose @anima1.dispose @anima2.dispose if $scene.is_a?(Scene_Title) Graphics.transition(50) Graphics.freeze end end #-------------------------------------------------------------------------- def update move_panorama move_anima if Input.trigger?(Input::C) $game_system.se_play($data_system.decision_se) $scene = Scene_Title.new end end #-------------------------------------------------------------------------- def setup_panorama(name) @panorama1 = Sprite.new @panorama1.bitmap = RPG::Cache.picture(name) cw = @panorama1.bitmap.width ch = @panorama1.bitmap.height @panorama1.z = 100 @panorama1.x = 0 @panorama1.y = 0 @panorama2 = Sprite.new @panorama2.bitmap = RPG::Cache.picture(name) cw = @panorama2.bitmap.width ch = @panorama2.bitmap.height @panorama2.z = 100 @panorama2.x = 0 - cw @panorama2.y = 0 end #-------------------------------------------------------------------------- def move_panorama if @panorama1.x == 640 @panorama1.x = - 640 end if @panorama2.x == 640 @panorama2.x = - 640 end @panorama1.x += 2 @panorama2.x += 2 end #-------------------------------------------------------------------------- def setup_anima(name) @anima1 = Sprite.new @anima1.bitmap = RPG::Cache.picture(name) cw = @anima1.bitmap.width ch = @anima1.bitmap.height @anima1.z = 100 @anima1.opacity = 170 @anima2 = Sprite.new @anima2.bitmap = RPG::Cache.picture(name) cw = @anima2.bitmap.width ch = @anima2.bitmap.height @anima2.z = 100 @anima2.ox = 0 - cw @anima2.oy = 0 @anima2.opacity = 170 end #-------------------------------------------------------------------------- def move_anima if @anima1.ox == 640 @anima1.ox = - 640 end if @anima2.ox == 640 @anima2.ox = - 640 end @anima1.ox += 2 @anima2.ox += 2 end end Para chamar use: - Código:
-
$scene = Scene_Creditos.new Abraço... | |
|
Burn Ocasional
Mensagens : 22 Data de inscrição : 18/01/2009 Idade : 29 Localização : Turbo Makers
| Assunto: Re: [Script]Creditos Dom Jan 18, 2009 6:48 am | |
| Nooosa que legal.. eu pensei que era um sistema de credito que só vips tivesse ;D... ou ganhar um credito fazendo uma missão etc.. | |
|