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.

Enemy Window Script

I'm making a custom battle system and need some help.

I would like a window that appears at the top of the screen and is called by a switch. It would show a health bar. Two variables would control how full it is. (one variable for max full, the other for current full.)

I hope someone could do this for me. Beelow is what I already have. The window would be like the one on the left, but for the enemy.

http://h1.ripway.com/ScourgeDragon/BattleImage.jpg[/IMG]
 
Thanks, no problems now. The only thing I had to change was:

"def refresh
self.contents.clear
self.contents.draw_text(0, 0,100,32,"Enemy HP")
#min = $game_variables[ENEMYHP_VARIABLE_ID] == 0 ? 1 : $game_variables[ENEMYHP_VARIABLE_ID]
#max = $game_variables[ENEMYMAXHP_VARIABLE_ID] == 0 ? 1 : $game_variables[ENEMYMAXHP_VARIABLE_ID]
#draw_slant_bar(100, 12, min, max, 200, 9, Color.new(150, 0, 0, 255), Color.new(255, 0, 0, 255))
end"

The #'s got me at first. I'm gonna need to have a paragraph or two thanking you in the credits.:D
 

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