I know this is a pretty dumb question...Don't ask what this window's for because it's totally random. I'm just trying to learn stuff lol. Anyway, I have a PNG pic called HEART in my graphics/pictures folder and I want it to appear in this window:
I get this error:
'Script "Window_3" line 15: NameError occured.
uninitialized constant Window_3::HEART'
I'm a newbie please tell me what I did wrong.
Code:
class Window_3 <Window_Base
def initialize(actor)
super(0, 300, 200, 120)
self.contents = Bitmap.new(width-32, height-32)
@actor = $game_party.actors[3]
refresh
end
def refresh
self.contents.clear
draw_actor_graphic(@actor, 20, 60)
draw_actor_name(@actor, 80, 0)
[B]bitmap = RPG::Cache.picture(HEART)[/B]
end
end
'Script "Window_3" line 15: NameError occured.
uninitialized constant Window_3::HEART'
I'm a newbie please tell me what I did wrong.