The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: AiR on March 08, 2007, 08:05:01 AM

Title: sidescrolling Menu system
Post by: AiR on March 08, 2007, 08:05:01 AM
Would it be at all possible to create a sidescrolling character selector on the main menu screen?
Title: Re: sidescrolling Menu system
Post by: Irock on March 08, 2007, 08:06:28 AM
Almost anything is possible with scripting.
Yes it would be. But you would have to find a good scripter like Blizzard.
Title: Re: sidescrolling Menu system
Post by: modern algebra on March 08, 2007, 06:40:20 PM
I'm not exactly sure what the question means?  :'( What is a sidescrolling character selector?
Title: Re: sidescrolling Menu system
Post by: Kokowam on March 08, 2007, 09:01:54 PM
Uhhh... I'm guessing a sidescrolling Menu system is like the thing that happens in Final Fantasy Tactics when you're selecting a job for a character.
Title: Re: sidescrolling Menu system
Post by: AiR on March 09, 2007, 12:02:51 AM
It's a menu screen where the character portraits and information scroll from side to side, rather than the usual up and down. Example:
+-++-+
|0||0|
+-++-+

As opposed to the typical:
+---+
|0-+|
+---+
+---+
|0-+|
+---+
Title: Re: sidescrolling Menu system
Post by: Season In The Abyss on March 09, 2007, 12:58:51 AM
Like this?
class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 480, 128)
    self.contents = Bitmap.new($game_party.actors.size * 448, 96)
    refresh
    self.active = false
    self.index = -1
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      x = 448 * i + 64
      y = 0
      actor = $game_party.actors[i]
      draw_actor_graphic(actor, x - 40, y + 80)
      draw_actor_name(actor, x, y)
      draw_actor_class(actor, x + 144, y)
      draw_actor_level(actor, x, y + 32)
      draw_actor_state(actor, x + 90, y + 32)
      draw_actor_exp(actor, x, y + 64)
      draw_actor_hp(actor, x + 236, y + 32)
      draw_actor_sp(actor, x + 236, y + 64)
    end
  end
  #--------------------------------------------------------------------------
  # * Cursor Rectangle Update
  #--------------------------------------------------------------------------
  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
    else
      self.ox = 448 * @index
      self.cursor_rect.set(0, 0, width - 32, height - 32)
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    if self.active
      if Input.repeat?(Input::RIGHT)
        $game_system.se_play($data.system.cursor_se)
        @index += 1
        @index %= $game_party.actors.size
      end
      if Input.repeat?(Input::LEFT)
        $game_system.se_play($data.system.cursor_se)
        @index -= 1
        @index %= $game_party.actors.size
      end
      update_cursor_rect
    end
  end
end
Title: Re: sidescrolling Menu system
Post by: AiR on March 09, 2007, 10:04:20 PM
Possibly, but what I'm most looking for are reference materials and/or tutorials teaching the procces of creating a CMS.  I currently have (most of) the system designed in Photoshop, but am unaware how to turn those mock-ups into the end product.

I've read the manual, which was of little help, and unfortuantely most of the tutorials linked on the main thread lead to private forums that no longer allow new members. :\ Internet searches have also gleened little to no help on the subject.  That said, any sites, tips, and/or reference materials you could lend to help me learn this particular type of scripting would be greatly appreciated.
Title: Re: sidescrolling Menu system
Post by: Season In The Abyss on March 10, 2007, 02:45:55 AM
The best way to learn to edit CMS is to view and edit other CMS.