Simply put i get a stack level too deep error for
In
What did i do wrong?
Code:
@sprite.bitmap = RPG::Cache.picture(@actor.name + ".png" )
Code:
class Window_Hud < Window_Base
def initialize
super(0,0, 128, 256)
self.contents = Bitmap.new(width - 32, height - 32)
@actor = $game_party.actors[0]
refresh
end
def refresh
@sprite= Sprite.new
@sprite.bitmap = RPG::Cache.picture(@actor.name + ".png" )
@sprite.z = 999
refresh
end
end
What did i do wrong?