khanhdu

Use Map as Battle Background

Jul 17th, 2018
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.66 KB | None | 0 0
  1. #==============================================================================
  2. #  @> Use Map as Battle Background ~ Karin's Soulkeeper, 2015
  3. #------------------------------------------------------------------------------
  4. #   v1.0 - Oct 28 : Started & finished.
  5. #------------------------------------------------------------------------------
  6. #  * Description:
  7. #    This allows you to use a bitmap of the current map as the battle
  8. #    background, and that's pretty much it.
  9. #    Safeguards are placed to prevent crashes when testing battles in
  10. #    the database.
  11. #------------------------------------------------------------------------------
  12. #  * To Use:
  13. #    Put this script below Materials and above Main.
  14. #------------------------------------------------------------------------------
  15. #  * Compatibility:
  16. #    This script overwrites battleback1_bitmap & battleback2_bitmap
  17. #    in Spriteset_Battle
  18. #------------------------------------------------------------------------------
  19. #  * Terms:
  20. #    Free to use in any kind of project, with or without credit. I wouldn't
  21. #    really mind. Though I'd appreciate it! (^w^)/
  22. #    Just don't, you know, claim that you made this here script yourself,
  23. #    Because that's just mean (._.)
  24. #==============================================================================
  25. class Spriteset_Battle
  26.   def battleback1_bitmap
  27.     return Cache.battleback1(battleback1_name) if $BTEST
  28.     return SceneManager.background_bitmap
  29.   end
  30.   def battleback2_bitmap
  31.     return Cache.battleback2(battleback2_name) if $BTEST
  32.     return Bitmap.new(1,1)
  33.   end
  34. end
  35. class Game_Map
  36.   def display_name
  37.     @map.display_name unless $BTEST
  38.   end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment