Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- RGSS3 Scrolling Text Pause 2012/05/24 mo-to
- TKOOL COOL
- http://mototkool.blog.fc2.com/
- ★Overview★
- Adds a pause function during text scrolling while holding the specified key.
- ★Usage★
- Paste this script above Main.
- ★Note★
- C and A buttons are used for fast forward by default.
- If you put a pause button, this pause function has a rule.
- Pause function is disabled if "Fast-forward is invalid"
- if checked in the event command.
- =end
- #↓Customization
- module MOTO
- #Specify a key to pause text scrolling while pressed
- #:DOWN 下 :UP 上 :LEFT 左 :RIGHT 右 :L :R :Y :X (for fast forward:C :A)
- MESS_STOP = :DOWN
- end
- #So far
- class Window_ScrollText < Window_Base
- #--------------------------------------------------------------------------
- # ○ Start scroll pause
- #--------------------------------------------------------------------------
- alias stop_scroll_speed scroll_speed
- def scroll_speed
- return $game_message.scroll_speed * 0 if show_stop?
- stop_scroll_speed
- end
- #--------------------------------------------------------------------------
- # ☆ Scroll pause control
- #--------------------------------------------------------------------------
- def show_stop?
- !$game_message.scroll_no_fast && Input.press?(MOTO::MESS_STOP)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement