Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Very quick questions about RTAB.

I'm using the "Real time active battle (RTAB) Ver 1.16" script
Here the link to it
http://www.rmxp.org/forums/showpost.php?p=75614&postcount=84

I don't have any problem, the script is perfect and awesome.
I just have an exigence, i think it is a common one: i need to have the battleback big as it was on the normal battle system, because on the RTAB it's zoomed.
I tryed to look in the script itself for some ways to deactivate that zoom but didn't manage to do that.
So i would be very grateful if somebody could tell me how i can do :)

Thanks.
 
Yeah, that was the same idea i had, sorry but doesn't work, it affects only the battlers, battleback remains the same.
Just now i noticed that after line 2500 there is:

# * Setting of battle background

I think under that there is the method for the background, but i think it's not just that u must modify, i forgot that also the enemies change location in the battle scene, so maybe it's not that simple...
 
Paste this script by Minkoff DIRECTLY under RTAB.
*TESTED and CONFIRMED*

Also NOW included in the page 1 post of the RTAB Topic

Code:
#==============================================================================
# ** Spriteset_Battle
#------------------------------------------------------------------------------
#  Stretched Background Removal
#==============================================================================

class Spriteset_Battle
  #--------------------------------------------------------------------------
  # * Setting of battle background
  #--------------------------------------------------------------------------
  def make_battleback
    @battleback_name = $game_temp.battleback_name
    if @battleback_sprite.bitmap != nil
      @battleback_sprite.bitmap.dispose
    end
    @battleback_sprite.bitmap = RPG::Cache.battleback(@battleback_name)
    @battleback_sprite.zoom_x = 640.0 / @battleback_sprite.bitmap.width
    @battleback_sprite.zoom_y = 480.0 / @battleback_sprite.bitmap.height
    @base_zoom = 1.0
  end
end
 
Gives me error: Nil can't be coerced into fixnum.
Error is on line 2578

Code:
 def screen_over
    width = @battleback_sprite.bitmap.width * @base_zoom * @target_zoom / 2
    unless 324 + @target_x > width and 324 - @target_x > width
      if 324 + @target_x > width
        @target_x = width - 324
      elsif 324 - @target_x > width
        @target_x = 324 - width
      end

Line 2578 is "width = @battleback_sprite.bitmap.width * @base_zoom * @target_zoom / 2"
So there must be something in your script that brings to nil some of this values i suppose.

P.s.: i use 1.16 RTAB does it make some difference?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top