The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: SoulPour777 on February 28, 2014, 02:48:14 PM

Title: Soul Engine Ace – Cutscene Screen
Post by: SoulPour777 on February 28, 2014, 02:48:14 PM
Soul Engine Ace – Cutscene Screen
Version: 1.0
Author: Soulpour777

Description


Do you want a specific screen size when you have a cutscene? This script does it. Your screen is changed to a new resolution in order to supply cutscenes and gives cover to what should only be seen on screen.

Features


Screenshots

(https://rmrk.net/proxy.php?request=http%3A%2F%2Finfinitytears.files.wordpress.com%2F2014%2F02%2Fcutscene_window.jpg%3Fw%3D584&hash=284052c3c5f7529bf13e01e55f1fee410f90703a)

Instructions

Configuration:

Screen_Switch = 10 # Switch ID to activate Cutscene Screen
# Touch / Change Values of these two if you want to change the height
# of the cutscene screen.
Spriteset_Height = 316 # Spriteset Height
Viewport_Height = 416 # Viewport Height
# Dimension Values
Spriteset_Rect_Y = 50 # Spriteset_Dimension
Spriteset_Rect_Y2 = 0 # Spriteset Dimension
#Message Window Values
Message_Window_Y = 50 # Message_Window
Message_Window_Height = 366 # Message_Window Height

Script


Code: [Select]
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-===
# Soul Engine Ace - Cutscene Screen
# Author: Soulpour777
# Version 1.0
# Script Category: Game Add-On
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-===
# Description: Do you want a specific screen size when you have a cutscene?
# This script does it. Your screen is changed to a new resolution in order
# to supply cutscenes and gives cover to what should only be seen on screen.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-===
# All SEA scripts are bound under my terms of use.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-===

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-===
# Soulpour Module
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-===
module Soulpour
  module Cutscene_Screen
    Screen_Switch = 10 # Switch ID to activate Cutscene Screen
    # Touch / Change Values of these two if you want to change the height
    # of the cutscene screen.
    Spriteset_Height = 316 # Spriteset Height
    Viewport_Height = 416 # Viewport Height
    # Dimension Values
    Spriteset_Rect_Y = 50 # Spriteset_Dimension
    Spriteset_Rect_Y2 = 0 # Spriteset Dimension
    #Message Window Values
    Message_Window_Y = 50 # Message_Window
    Message_Window_Height = 366 # Message_Window Height
  end
end

#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
#  This class performs the map screen processing.
#==============================================================================
class Scene_Map < Scene_Base
 
  # --------------------------------------------------------
  # Alias Listings
  # --------------------------------------------------------
  alias soul_rend_scene_map_update_map update
 
  # --------------------------------------------------------
  # Public Instance Variables
  # --------------------------------------------------------
  attr_reader :spriteset
 
  # --------------------------------------------------------
  # Update (Aliased)
  # --------------------------------------------------------
  def update
    render_visible = [@winsta, @debugWindow]
    if $game_switches[Soulpour::Cutscene_Screen::Screen_Switch]
      for view in @spriteset.viewports
        view.rect.y = Soulpour::Cutscene_Screen::Spriteset_Rect_Y
        view.rect.height = Soulpour::Cutscene_Screen::Spriteset_Height
      end
    else
      for view in @spriteset.viewports
        view.rect.y = Soulpour::Cutscene_Screen::Spriteset_Rect_Y2
        view.rect.height = Soulpour::Cutscene_Screen::Viewport_Height
      end
    end
   
    for window in render_visible
      window.visible = ($game_switches[WideSwitch] == false) unless window == nil
    end
   
    if $game_switches[Soulpour::Cutscene_Screen::Screen_Switch]
      case $game_message.position
        when 0 #Top
          @message_window.y = Soulpour::Cutscene_Screen::Message_Window_Y   
        when 2 #Bottom
          @message_window.y = Soulpour::Cutscene_Screen::Message_Window_Height - @message_window.height
        end
      end
      soul_rend_scene_map_update_map
  end
 
end

#==============================================================================
# ** Spriteset_Map
#------------------------------------------------------------------------------
#  This class brings together map screen sprites, tilemaps, etc. It's used
# within the Scene_Map class.
#==============================================================================
class Spriteset_Map
  # --------------------------------------------------------
  # Alias Listings
  # --------------------------------------------------------
  alias soul_rend_spriteset_map_create_viewport create_viewports
 
  # --------------------------------------------------------
  # Public Instance Variables
  # --------------------------------------------------------
  attr_accessor :viewport1
  attr_accessor :viewport2
  attr_accessor :viewport3
  attr_accessor :viewports
 
  # --------------------------------------------------------
  # Create Viewports (Aliased)
  # --------------------------------------------------------
  def create_viewports
    soul_rend_spriteset_map_create_viewport
    @viewports = [@viewport1, @viewport2, @viewport3]
  end

end

Credit



Support


If you have any questions, comments, critiques, corrections or any other concern about the script, please do contact me here on RMRK, comment below or mail me in my website.

Known Compatibility Issues

- N / A

Author's Notes


Because we love cutscenes, don't we?

Terms of Use


All my scripts are bound under my terms of use. If any terms on RMRK does not contradict my terms, please add those.
Title: Re: Soul Engine Ace – Cutscene Screen
Post by: modern algebra on March 01, 2014, 02:46:05 PM
That's a neat idea SoulPour. I hadn't really thought about it, but it is true that a  lot of games do this for cutscenes, and it's a nice idea to allow it in Ace too. Thanks for sharing!