Text Speed

Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
43
Reaction score
29
First Language
English
Primarily Uses
RMVXA
Porting my VX Ace Scrip. This script allows to globally change the speed of game text.

- Double/Triple/.. text speed
- Make text slower
- Instant text

Ruby:
=begin
===============================================================================
Text Speed
Change text speed by Zero_G v1.1
Version: RGSS2
===============================================================================
== Description ==
This script will allow you to change the speed the text is displayed.
Text can be slowed down, speed up or to displayed instantly.

== Terms of Use ==
- Free for use in non-commercial projects.
- Free for use in commercial projects.
- Please provide credits to Zero_G.

== Credits ==
No one.

== Usage ==
Just add the plugin before main.

== Changelog ==
v1.1 Change methods overwrite to alias
v1.0 Initial
--------------------------------------------------------------------------------
=end
module ZERO
  # Speed of text, values 0 and 1 for default speed
  # 2 for double speed, 3 triple speed, ...
  TEXT_SPEED = 2

  # For slowing text add a delay between characters
  # 10 for very slow text, 5 slow text, 1 a bit slow
  # 0 to disable
  SLOW_TEXT = 0

  # Display text instantly, will ignore text speed
  # Set to false for default, true for instant text
  INSTANT_SPEED = false
end

class Window_Message < Window_Selectable
  # Alias
  alias zero_textspeed_update update
  def update
    unless @opening or @closing
      if @text != nil
        for i in 2..ZERO::TEXT_SPEED # Speed up text
          update_message
        end
      end
    end
    zero_textspeed_update
  end
 
  # Instant speed
  # Alias
  if ZERO::INSTANT_SPEED
    alias zero_update_show_fast update_show_fast
    def update_show_fast
      zero_update_show_fast
      @show_fast = true
    end
  end

  # Alias
  alias zero_update_message update_message
  def update_message
    @wait_count = ZERO::SLOW_TEXT # Slow text
    unless @text.nil?
      zero_update_message
    end
  end
end
 
Last edited:

Yokiko

Veteran
Veteran
Joined
Jan 20, 2014
Messages
36
Reaction score
6
First Language
German
Primarily Uses
RMVX
Very nice! It's good to have the option of altering the text speed without having to rely on some fancy message system. I actually might use this for my next small project.
Thank you for posting :kaojoy:
 

Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
43
Reaction score
29
First Language
English
Primarily Uses
RMVXA
Do mind that I haven't tested extensively, so do report any problem you may have with it. If necessary I can modify the script to tie text speed to VX variables so it can be modified mid game.
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm moving on from RMXP finally. I've been stuck in a difficult decision between XP and MZ, and I've given up and moved on to MZ. Overall I'm really liking it, I wish tilesets were easier to setup like XP, but it's actually not that bad!
Have you ever gone full 'Ship of Theseus' while frankenspriting? Because I just did.
I saw my new eye doctor today, he reminds me of Satoru Iwata for some reason
I've been using a modified version of a script called Multiple Messages. It makes my text boxes look like a Mario & Luigi game! There is something about it that bothers me a little bit, but I shouldn't worry about that now.

Side note, Mist's walking animation is almost perfectly in sync with Loose Yourself by Eminem.
Starting work on some stuff for the community. Hopefully it will be fun, and useful to somebody.

Forum statistics

Threads
107,772
Messages
1,032,033
Members
139,914
Latest member
smudge
Top