Battle back

● ARCHIVED · READ-ONLY
Started by Helyn 5 posts View original ↗
  1. HelIo! I am using RPG maker xp and would like to use a current map where fighting is going on as a battle background. I found this script but i dont know how to use it. I Inserted it in Script editor but i guess i should also change something. Help please. :)

     


    module Map_battleback_settings
    On_switch = 1
    end


    class Spriteset_Battle
    include Map_battleback_settings
    #--------------------------------------------------------------------------
    # * Get Battle Background (Floor) Bitmap
    #--------------------------------------------------------------------------
    alias xypher_map_battleback1 battleback1_bitmap
    def battleback1_bitmap
    if $game_switches[On_switch]
    create_mapbattleback_bitmap
    else
    xypher_map_battleback1
    end
    end
    #--------------------------------------------------------------------------
    # * Get Battle Background (Wall) Bitmap
    #--------------------------------------------------------------------------
    alias xypher_map_battleback2 battleback2_bitmap
    def battleback2_bitmap
    if $game_switches[On_switch]
    Bitmap.new(1, 1)
    else
    xypher_map_battleback2
    end
    end
    #--------------------------------------------------------------------------
    # * Create Battle Background Bitmap from Processed Map Screen
    #--------------------------------------------------------------------------
    def create_mapbattleback_bitmap
    source = SceneManager.background_bitmap
    bitmap = Bitmap.new(Graphics.width, Graphics.height)
    bitmap.stretch_blt(bitmap.rect, source, source.rect)
    bitmap
    end
    end
  2. After inserting the script correctly all you should have to do is turn on the switch associated with said script's function (1 by default) and it should run. Appears to be plug and play. Might want to read up on a few tutorials involving the basics of switches if you are unsure about them.
  3. Ok, thank you very much. :)
  4. I think the marked answer above is wrong, because the poster ignored the information about the maker.


    This script area and the OP's profile both say that it's about RMXP - and that means the given script most probably cannot run at all.


    That script talks about front and wall parts of the battleback, and that are features from Ace (or perhaps VX), the XP had only single picture battlebacks.
  5. Ok, i found another script and it works, but the problem is, that the character can be still seen where she was before battle and that enemies are too low. Can this be fixed?