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.

..::Lost Fantasy::.. Online RPG Game

Status
Not open for further replies.
Scene_Map:

Code:
  def update_systems
    # Update Mouse Position
    $mouse.update
    # Update Mouse
    #update_mouse
    # Update Input
    update_input
    # Update old systems
    netplay2_update_systems
    # Update Network
    update_network
    # Update Netplayers
    update_netplayers
    # Update Move
    Network::Main.send_move_change
    # Update Chat
    update_chat
    # Update Private Chat
    #update_pchat
    # Update Error System
    update_errorsystem
    @move_sec -= 1 if @move_sec > 0
    if $game_player.moving? and @move_sec == 0
      $game_party.actors[0].hp += 5
      $game_party.actors[0].sp += 5
      @move_sec = 10
    end
  end


EDIT:

I have found what i think is the problem... My Hud. I have HP and MP bars in my Hud, and it is having to update them every time the character walks.

Not sure what I can do about that really...

Code:
class Window_HudBars < Window_Base
  #----------------------------------------
  # Object Initialization
  #----------------------------------------
  def initialize
    super(178, 364, 360, 60)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.z = 200
    self.opacity = 0
    @old_hp = $game_party.actors[0].hp
    @old_sp = $game_party.actors[0].sp
    refresh
  end
  
  def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    self.contents.font.size = 12
    @minhp = $game_party.actors[0].hp
    @maxhp = $game_party.actors[0].maxhp
    @minsp = $game_party.actors[0].sp
    @maxsp = $game_party.actors[0].maxsp
    draw_slant_bar(0, 6, @minhp, @maxhp, width = 144, height = 10, bar_color = Color.new(128, 0, 0, 255), end_color = Color.new(173, 14, 5, 255))
    draw_slant_bar(144, 6, @minsp, @maxsp, width = 144, height = 10, bar_color = Color.new(0, 0, 128, 255), end_color = Color.new(5, 49, 165, 255))
  end


  def update
    super
    if @old_hp != $game_party.actors[0].hp or @old_sp != $game_party.actors[0].sp
      refresh
      @old_hp = $game_party.actors[0].hp
      @old_sp = $game_party.actors[0].sp
    end
  end
end
 
Try this;
Code:
class Window_HudBars < Window_Base
  #----------------------------------------
  # Object Initialization
  #----------------------------------------
  def initialize
    super(178, 364, 360, 60)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.z = 200
    self.opacity = 0
    @old_hp = $game_party.actors[0].hp
    @old_sp = $game_party.actors[0].sp
    refresh
  end
  
  def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    self.contents.font.size = 12
    @minhp = $game_party.actors[0].hp
    @maxhp = $game_party.actors[0].maxhp
    @minsp = $game_party.actors[0].sp
    @maxsp = $game_party.actors[0].maxsp
    if @old_hp != $game_party.actors[0].hp
      draw_slant_bar(0, 6, @minhp, @maxhp, 144, 10, Color.new(128, 0, 0, 255), Color.new(173, 14, 5, 255))
    end
    if @old_sp != $game_party.actors[0].sp
      draw_slant_bar(144, 6, @minsp, @maxsp, 144, 10, Color.new(0, 0, 128, 255), Color.new(5, 49, 165, 255))
    end
  end


  def update
    super
    if @old_hp != $game_party.actors[0].hp or @old_sp != $game_party.actors[0].sp
      refresh
      @old_hp = $game_party.actors[0].hp
      @old_sp = $game_party.actors[0].sp
    end
  end
end
It will make it better by not updating the SP.
 
oh yeah :( I forgat the contents.clear command.

Well, I don't know what you can do at this point.

Increase the 10 to 30 for 3 seconds
 
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