Rayne Aven
Member
So, let me just begin by saying I'm probably the biggest newbie when it comes to scripting, so this problem can probably be easily solved by anyone.
I have a script that displays text. The problem is, I want the text to disappear after 20 frames, but I don't know how to do this.
That clear method is what I want to call after 20 frames.
Can anyone please help?
I have a script that displays text. The problem is, I want the text to disappear after 20 frames, but I don't know how to do this.
Code:
class My_Window3 < Window_Base
# * Object Initialization
def initialize
super(0, 0, 256, 96)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
show_text
#clear
end
# * Refresh
def show_text
self.contents.clear
self.contents.draw_text(0, 0, 256, 32, $game_variables[24].to_s)
end
#def clear
#self.contents.clear
#end
end
That clear method is what I want to call after 20 frames.
Can anyone please help?