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.

[Resolved] Small Problem with Battlers

Status
Not open for further replies.

Anonymous

Guest

To change the actor's battle coordinates, alter these two methods in Game_Actor:

Code:
#--------------------------------------------------------------------------
  # * Get Battle Screen X-Coordinate
  #--------------------------------------------------------------------------
  def screen_x
    # Return after calculating x-coordinate by order of members in party
    if self.index != nil
      return self.index * 160 + 80
    else
      return 0
    end
  end
  #--------------------------------------------------------------------------
  # * Get Battle Screen Y-Coordinate
  #--------------------------------------------------------------------------
  def screen_y
    return 464
  end

To make the battleback take up the whole screen, look in Spriteset_Battle, first change

Code:
@viewport1 = Viewport.new(0, 0, 640, 320)

to

Code:
@viewport1 = Viewport.new(0, 0, 640, 480)

Then delete this line

Code:
@battleback_sprite.src_rect.set(0, 0, 640, 320)

That will allow you display battlebacks larger than 640x320. If you want to stretch a 640x360 battleback to fit the screen, add these two lines where the above line was.

Code:
    @battleback_sprite.zoom_x = 640.0 / @battleback_sprite.bitmap.width
    @battleback_sprite.zoom_y = 480.0 / @battleback_sprite.bitmap.height
 
Status
Not open for further replies.

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