I'm having a bit of trouble with this. I can display the window and all, but I'm trying to make it fancy and fade-in and out.
The thing is, I want the window to display for like 3 seconds and then dispose. However, I don't want the game to pause, I want it to be like a Parallel Process.
I've came up with one way to accomplish this, but it just isn't working out for me... Any help would be appreciated!
This is what I have so far:
#==============================================================================
# = Window_Location
#==============================================================================
class Window_Location < Window_Selectable
def initialize(x, y)
super(x, y, 200, WLH + 32)
self.opacity = 0
refresh
end
def refresh
frames = Graphics.frame_count + 120
self.opacity += 10 while frames > Graphics.frame_count
self.contents.clear
self.contents.draw_text(0, 0, self.width - 32, WLH, $mapname, 1)
end
end