Need help with this panorama script

Hi guys,

I have here a panorama scrolling script, but I have a problem with it.

You see, when I start an auto event or parallel process in the map, and I show a textbox, the panorama stops moving.
Is there a way to fix that so it keeps moving while the dialogue is showing?

  1. #===============================================================================
  2. # Panorama Mover 1.1
  3. #===============================================================================
  4. # The Sleeping Leonhart
  5. # Version 1.0
  6. # 23-8-2007
  7. #===============================================================================
  8. # This little script allow you to move the Panorama.
  9. # You can move the panorama with this command
  10. # $game_map.move_panorama(x,y).
  11. # Else you can compile the AUTOSCROLL_MAP hash for an auto movement in
  12. # specificated map.
  13. #===============================================================================
  14. module Panorama_Mover
  15.   # AUTOSCROLL_MAP = {map_id => [x movement, y movement]
  16.   AUTOSCROLL_MAP = { 1 => [2,1]
  17.   }
  18.   # this is for the map not declarated in the hash don't touch if you dont know
  19. #what are you doing
  20.   AUTOSCROLL_MAP.default = [0,0]
  21. end
  22. class Game_Map
  23.   attr_reader   :panorama_ox
  24.   attr_reader   :panorama_oy
  25.   alias tsl_game_map_setup setup
  26.   def setup(map_id)
  27.     tsl_game_map_setup(map_id)
  28.     @panorama_ox = 0
  29.     @panorama_oy = 0
  30.   end
  31.   def move_panorama(x,y)
  32.     @panorama_ox += x
  33.     @panorama_oy += y
  34.   end
  35.   alias tsl_game_map_update update
  36.   def update
  37.     tsl_game_map_update
  38.     move_panorama(Panorama_Mover::AUTOSCROLL_MAP[@map_id][0],Panorama_Mover::AUTOSCROLL_MAP[@map_id][1])
  39.   end
  40. end
  41.  
  42. class Spriteset_Map
  43. alias tsl_spriteset_map_update update
  44.   def update
  45.     tsl_spriteset_map_update
  46.     @panorama.ox += $game_map.panorama_ox
  47.     @panorama.oy += $game_map.panorama_oy
  48.   end
  49. end
Expand to see the code.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=76836