From d0fb509fa53c857316f1a432bb33be060b50459c Mon Sep 17 00:00:00 2001 From: Mathew Velasquez Date: Wed, 18 Nov 2015 11:10:04 -0500 Subject: [PATCH] Message blip delay changed --- scripts/Window_Message.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/Window_Message.rb b/scripts/Window_Message.rb index b3726f7..00a6a70 100644 --- a/scripts/Window_Message.rb +++ b/scripts/Window_Message.rb @@ -5,6 +5,7 @@ #============================================================================== class Window_Message < Window_Selectable + BLIP_TIME = 4 #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- @@ -21,7 +22,7 @@ class Window_Message < Window_Selectable @opaque = true # set to false if we're not rendering the window bg @text_pause = 0 - @blip = false + @blip = 0 # Text drawing flags @text = nil @@ -81,7 +82,7 @@ class Window_Message < Window_Selectable #-------------------------------------------------------------------------- def refresh # Initialize - @blip = true + @blip = BLIP_TIME @text = '' y = -1 @@ -183,7 +184,7 @@ class Window_Message < Window_Selectable return if !@drawing_text # Get 1 text character in c (loop until unable to get text) - while ((c = @text.slice!(/./m)) != nil) + while ((c = @text.slice!(0)) != nil) # \n if c == "\n" @text_x = 0 @@ -330,9 +331,12 @@ class Window_Message < Window_Selectable if @text_pause > 0 @text_pause -= 1 else - Audio.se_play('Audio/SE/text.wav', 70) unless @text.empty? if @blip - @blip = !@blip - #tick + if @blip >= BLIP_TIME + Audio.se_play('Audio/SE/text.wav', 70) unless @text.empty? + @blip = 0 + else + @blip += 1 + end tick end else