Hey there! I usually like to figure things out for myself, but this is proving tricky, so here it goes!
I'm making a mini-game that requires the hero to collect a certain amount of wood for a fire. I'd like to have a counter of some sort displayed in the corner of the screen while the hero tries to get the wood. The wood could be represented by logs, or just numbers. Beyond that, he would try to collect 5 pieces in enough time to make the fire stay lit. I could really use someone's help in making this system. This is what I have so far. Please let me know if there is anything I can do!
Thanks very much!
Update: I was working on it a bit, and pulled some stuff from Window_Gold and Window_Base. I can't seem to get the script call my_object = Window_Wood.dispose to work.
I hope I've started this right, I haven't really done this kinda stuff all too often...
Thanks again!
I'm making a mini-game that requires the hero to collect a certain amount of wood for a fire. I'd like to have a counter of some sort displayed in the corner of the screen while the hero tries to get the wood. The wood could be represented by logs, or just numbers. Beyond that, he would try to collect 5 pieces in enough time to make the fire stay lit. I could really use someone's help in making this system. This is what I have so far. Please let me know if there is anything I can do!
Thanks very much!
Code:
class Window_Wood < Window_Base
def initialize
@wood == "1"
super(0,0,200,200)
self.contents=Bitmap.new(width-32,height-32)
self.contents.font.name="Arial"
refresh
dispose
end
def refresh
self.contents.clear
self.contents.draw_text(0,0,200,32,@wood)
end
def dispose
self.contents.dispose #Does not work when I call my_object = Window_Wood.dispose
end
end
Update: I was working on it a bit, and pulled some stuff from Window_Gold and Window_Base. I can't seem to get the script call my_object = Window_Wood.dispose to work.
I hope I've started this right, I haven't really done this kinda stuff all too often...
Thanks again!