So I was wondering what is the best way to display a enemy health bar on the map. So right now I have a enemy sprite on the map with the var enemy_HP which is set to 30. What I think i would need to do is make a script which draws a health bar above the enemies head and then goes down depending on when the enemy takes damage Is there any way this could be even ted or would a script be faster.
Enemy Health Bars On Map -
RPG Maker MV SupportYou could Event it, but would be difficult with Eventing alone because some commands are missing, like Zoom Picture xy depending on Variable and not constants.
Than you could just show a Picture above each Enemy and Zoom it depending on there percentage Health Value.
Someone in a German Forum providet this in a Thread. Sorry dont have Link is too many years ago.
But it allows to change the Zoom of a picture with Variable Value.
Inser as new Script in Scripteditor:
class Game_Picture
attr_accessor :zoom_x # Für Picture Zoom - Callscript abfrage
attr_accessor :zoom_y # Für Picture Zoom - Callscript abfrage
attr_accessor :target_zoom_x
attr_accessor :target_zoom_y
attr_accessor :duration
end
# to use in scriptcall: screen.pictures[insertPictureID_or id pointer].zoom_x =
# $game_variables[insertIDVariable_or id pointer]
There should be allready existing Scripts for your stuff but i dont know one right now.
Than you could just show a Picture above each Enemy and Zoom it depending on there percentage Health Value.
Someone in a German Forum providet this in a Thread. Sorry dont have Link is too many years ago.
But it allows to change the Zoom of a picture with Variable Value.
Inser as new Script in Scripteditor:
class Game_Picture
attr_accessor :zoom_x # Für Picture Zoom - Callscript abfrage
attr_accessor :zoom_y # Für Picture Zoom - Callscript abfrage
attr_accessor :target_zoom_x
attr_accessor :target_zoom_y
attr_accessor :duration
end
# to use in scriptcall: screen.pictures[insertPictureID_or id pointer].zoom_x =
# $game_variables[insertIDVariable_or id pointer]
There should be allready existing Scripts for your stuff but i dont know one right now.
Original thread: https://forums.rpgmakerweb.com/threads/enemy-health-bars-on-map.67707/