RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Location Window

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 88
&& Lime
Winner - 2011 Spring Project of the Season
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:
Code: [Select]
#==============================================================================
# = 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


hey, pasta!

i'm not okay.