Scene_Map:
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:
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