Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Scene_Credit [UPDATED], Shows credit at different window
Azuaya
post May 12 2008, 10:35 PM
Post #1


Random Wanderer
Group Icon

Group: Revolutionary
Posts: 157
Type: Scripter
RM Skill: Beginner




Author: Azuaya
Version: 1.1 (Current)

Scene_Credit script. Plug & Play

Updates:
v1.0 : First released
v1.1 : Does not require Vocab stuff no more... and fixed a few things

1. Use the Custom Menu Script made by Woratana. Located here --> http://www.rpgrevolution.com/forums/?showtopic=11705
2. Add Woratana's Credit Script. Located here ---> http://www.rpgrevolution.com/forums/?showtopic=13633 Then go all the way to the bottom of the script and change class Scene_Map < Scene_Base TO Scene_Credits < Scene_Base
3. Add a new command, COMMAND[3] = ['Credits', '$scene = Scene_Credits.new'] in Wora's Custom Menu Script.
4. Insert this script above Woratana's Custom Menu Script.
[Show/Hide] Scene_Credits

CODE
#==============================================================================
# ** Scene_Credits by Azuaya
#------------------------------------------------------------------------------
#  This section shows options of starting credit, terminating it and back to title.
#==============================================================================

class Scene_Credits < Scene_Base
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    create_graphic                       # Create graphic
    create_command_window          # Create command window
    play_music                    # Play selected music
  end
  #--------------------------------------------------------------------------
  # * Post-Start Processing
  #--------------------------------------------------------------------------
  def post_start
    super
    open_command_window
  end
  #--------------------------------------------------------------------------
  # * Pre-termination Processing
  #--------------------------------------------------------------------------
  def pre_terminate
    super
    close_command_window
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_command_window
    snapshot_for_background
    dispose_graphic
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    @command_window.update
    if Input.trigger?(Input::C)
      case @command_window.index
      when 0    #Show Credit
        command_start_credits
      when 1    #Close Credit
        command_terminate
      when 2    #Back to Title
        command_to_title
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Create Graphic
  #--------------------------------------------------------------------------
  def create_graphic
    @sprite = Sprite.new
    @sprite.bitmap = Cache.system("Credit")    #Add an image in System for Credit
  end
  #--------------------------------------------------------------------------
  # * Dispose Graphic
  #--------------------------------------------------------------------------
  def dispose_graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = "Start Credit"
    s2 = "Terminate"
    s3 = Vocab::to_title
    @command_window = Window_Command.new(172, [s1, s2, s3])
    @command_window.x = ( 915 - @command_window.width) / 2
    @command_window.y = 280
    @command_window.opacity = 255

    @command_window.openness = 0
    @command_window.open
  end
  #--------------------------------------------------------------------------
  # * Dispose of Command Window
  #--------------------------------------------------------------------------
  def dispose_command_window
    @command_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Open Command Window
  #--------------------------------------------------------------------------
  def open_command_window
    @command_window.open
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 255
  end
  #--------------------------------------------------------------------------
  # * Close Command Window
  #--------------------------------------------------------------------------
  def close_command_window
    @command_window.close
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 0
  end
  #--------------------------------------------------------------------------
  # * Play Music
  #--------------------------------------------------------------------------
  def play_music
    Audio.bgm_play(" " , 100, 100)    #Add BGM and it will play that BGM
    RPG::BGS.stop
    RPG::ME.stop
  end
  #-----------------------------------------
  # * Show Credit
  #-----------------------------------------
  def command_start_credits
    $scene.credit.start
    close_command_window
    open_command_window
  end
  #-----------------------------------------
  #  * End Credit
  #-----------------------------------------
  def command_terminate
    $scene.credit.terminate
  end
  #--------------------------------------------------------------------------
  # * Back to Title
  #--------------------------------------------------------------------------
  def command_to_title
    $scene = Scene_Title.new
    close_command_window
  end
end



6. Now test it and enjoy your credit at different screen!

NOTE: Look at the script one more time. It requires a picture named "Credit" in Graphic\System folder. Also you can add a BGM in there.
Look for this line.
CODE
Audio.bgm_play(" " , 100 100)


CREDITS: Woratana as he is a cool scripter thumbsup.gif

This post has been edited by Azuaya: May 29 2009, 05:59 PM


__________________________
I wander around the RPG Maker VX forums to help others in need... if I'm bothered.

Go to the top of the page
 
+Quote Post
   
demonicblade
post May 14 2008, 11:07 AM
Post #2


Level 2
Group Icon

Group: Member
Posts: 18
Type: Event Designer
RM Skill: Skilled




Looks nice. Now we better hope it works, 'cuz that's one long tutorial (with all those scripts). Might wanna put together a demo with all the scripts, and with extra instructions inside. Could spare others some time wink.gif


__________________________
This is supposedly a signature, but I don't think so, since my real name isn't included. I could include, but why would I do that? I'm sure you wouldn't care, so I do not see a reason to do so. Of course, the fact that you wouldn't care might actually annoy you if I did, which is actually a pretty good reason to include, at least for me it is. But then again, we're not supposed to give out our real name to strangers on the net, are we? And we're not supposed to speak to strangers either. Meaning I can't speak to you. Of course, you can speak to me, and I hopefully will answer, but you should think about it before you do.

Look up to see a lot of crap. Look down to see whatever is below this post. Look behind you, won't help you too much either, but looking to the left would show you the word word. Looking to the right would give you . .

Take it easy. I'm just an idiot. Nothing else (I hope... :P)
Go to the top of the page
 
+Quote Post
   
Azuaya
post May 14 2008, 10:58 PM
Post #3


Random Wanderer
Group Icon

Group: Revolutionary
Posts: 157
Type: Scripter
RM Skill: Beginner




@demonicblade: Sure thing, i'll see if i have time for uploading a demo for it or so.


__________________________
I wander around the RPG Maker VX forums to help others in need... if I'm bothered.

Go to the top of the page
 
+Quote Post
   
Sorrowful Piņata
post Jun 20 2008, 07:08 PM
Post #4


Level 2
Group Icon

Group: Member
Posts: 21
Type: Developer
RM Skill: Beginner




Hi, I'm new here on the forums; I have some kind of problem with that "Title credit" thingy...

Here's the thing, I downloaded your demo and looked at where the scripts where placed and all that stuff, I tried to do it on my own, (following your instructions I mean) and it didn't worked, so; I just opened your demo again with the RMVX, and I copy-pasted all 3 scripts "Scene Credits"; "Credits" and "Custom Title" exactly the same way as they were on your demo to my game, I haven't forgotten those small lines of code that needed to be written in the "Vocab" and yet... it doesn't work! confused.gif

The problem is that when I open my game, the Title screen is simply as usual with the options "New game, Continue and Shutdown"... Can you please help me out? I'm going crazy with this! wallbash.gif


__________________________
[Show/Hide] One Piece (Straw Hat crew)

Captain


---------------------------------------Swordsman----------------------------------Navigator-----------------------------------Sniper----------------------------------------Cook-------------------------------------

-----------------------------------------Medic----------------------------------Archeologist-------------------------------Shipwrith-------------------------------------Princess------------------------------




[Show/Hide] The project I'm currently working on
Go to the top of the page
 
+Quote Post
   
SitiJenar
post Aug 10 2008, 07:32 PM
Post #5


Level 1
Group Icon

Group: Member
Posts: 7
Type: Event Designer
RM Skill: Beginner




At last i can add all the scripter name to my game, but still have little bug, i just try using title pic as credit image and credit_bg image when it start
i cant stop the screen coz the terminate button not show up, when i press like enter or space the credits show again and overlaping the old one
a momment. But ill try it again later...
Thanks Azuaya... You will be credit too for my game biggrin.gif
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 10:57 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker