Fade in Short Text

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
Made for a request here.

This script make uses of the map name window and let you display short texts with it that fades in and out just like the map names.

So you may use it to display achievements, chapters or any other short texts you like.



Features:

Short text that fades in and out

How to use:

[1] Paste this script below Material and above Main

[2] Use this script call to display text on screen:

quick_text("Your Text Here")Compatibility:

This script overwrites how the map name window works. If you have other custom scripts that overwrite how the map name window works, there can be conflicts.

Terms of Use:

Free for both commercial and non-commercial.

Script:

Code:
#==============================================================================# ■ Meow Face Display Quick Text#------------------------------------------------------------------------------# Display a quick text pop up in the Map window#==============================================================================# How to Use:# [1] Paste this below Material and above Main# [2] Use this script call to display the text on screen#     quick_text("your text here")#==============================================================================class Game_Map  attr_accessor :show_achievement  attr_accessor :achievement_text  alias meow_gm_achievement_init initialize  def initialize    meow_gm_achievement_init    @show_achievement = false    @achievement_text = "text"  end  def display_achievement_show    SceneManager.scene.show_achievement_text  end  alias meow_update_achievement_mn update  def update(main = false) #alias    meow_update_achievement_mn(main)     display_achievement_show if @show_achievement  endendclass Game_Interpreter  def quick_text(text)    $game_map.achievement_text = text    $game_map.show_achievement = true  endendclass Window_MapName < Window_Base  def refresh #overwrite    contents.clear    if $game_map.show_achievement == true      draw_background(contents.rect)      draw_text(contents.rect, $game_map.achievement_text, 1)      $game_map.show_achievement = false    else      unless $game_map.display_name.empty?        draw_background(contents.rect)        draw_text(contents.rect, $game_map.display_name, 1)      end    end  endendclass Scene_Map < Scene_Base  def show_achievement_text    @map_name_window.open  endend
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Very simple and useful, I love scripts like this!
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
701
Reaction score
1,179
First Language
English
Primarily Uses
N/A
Fixed script format, credit Meow Face.
Code:
#==============================================================================
# ■ Meow Face Display Quick Text
#------------------------------------------------------------------------------
# Display a quick text pop up in the Map window
#==============================================================================
# How to Use:
#[1] Paste this below Material and above Main
# [2] Use this script call to display the text on screen
#     quick_text("your text here")
#==============================================================================
class Game_Map
  attr_accessor :show_achievement
  attr_accessor :achievement_text
  alias meow_gm_achievement_init initialize
  def initialize  
    meow_gm_achievement_init  
    @show_achievement = false  
    @achievement_text = "text"
  end
  def display_achievement_show  
    SceneManager.scene.show_achievement_text
  end
  alias meow_update_achievement_mn
  update
  def update(main = false) #alias  
    meow_update_achievement_mn(main)    
    display_achievement_show if @show_achievement
  end
end
class Game_Interpreter
  def quick_text(text)  
    $game_map.achievement_text = text  
    $game_map.show_achievement = true
  end
end
class Window_MapName < Window_Base
  def refresh #overwrite  
    contents.clear  
    if $game_map.show_achievement == true    
      draw_background(contents.rect)    
      draw_text(contents.rect, $game_map.achievement_text, 1)    
      $game_map.show_achievement = false  
    else
      unless $game_map.display_name.empty?      
        draw_background(contents.rect)      
        draw_text(contents.rect, $game_map.display_name, 1)    
      end
    end
  end
end
class Scene_Map < Scene_Base
  def show_achievement_text  
  @map_name_window.open
end
end
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Haired slime? Trying some different styles of art. Maybe I can make some resources with this new kind of painting.......
i love my game very much
Uh, I'm probably overthinking this, but I think that some of my music sounds kinda...bad?
The melodies are just sort of awkward, and don't flow.
I'm really not sure what to do. Why am I even worrying about this? I don't even have a battle system yet!
And the Lord said, let there be lighting effects! And there were lighting effects! And it was good...ish? Might tweak this some more.
Today was a day of good things! Thank you fate! I pray to the darkness that those that read this will enjoy a good day as well! Power to the gam mak.

Forum statistics

Threads
105,721
Messages
1,015,903
Members
137,401
Latest member
Rubbun
Top