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]Window Help

I'm trying to make a window in the Battle System showing the enemy's name, but somehow it doesn't work, it doesn't show the name. That's the window I have:
Code:
class Window_EnemyName < Window_Base
  def initialize
    super(0, 320, 160, 160)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  
  def refresh
   self.contents.clear
    for i in 0...$game_troop.enemies.size
       enemy = $game_troop.enemies[i]
       y = i * 32
       self.contents.draw_text(4, y, 130, 64, "#{enemy.name}")
    end
  end

end
 

$t3v0

Awesome Bro

You still kick as much arse as you did the last time we spoke, Raziel! It seems your scripting skills are developing very well, and I'm glad to see it!

( I'm aware this isn't a script, I just haven't spoke to you in a while :( )

Take care,

~ $t3v0
 

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