How to remove an image from a window?
#2
Maybe you should try this...
Replace:
Code:
@Map.dispose
with
Code:
@Map.dispose unless @Map == nil
which only disposes @Map if it still exists.

Now replace:
Code:
if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Map.new
    end

Code:
if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @Map.dispose unless @Map == nil
      @Map = nil
      $scene = Scene_Map.new
    end
Which can delete/dispose of @map on the keypress. After that, I set it to 'nil' so IF it is disposed this way, the system won't try to dispose it again at the end of the main routine.
Reply


Messages In This Thread
[Resolved] How to remove an image from a window? - by DerVVulfman - 07-12-2009, 04:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   How do I make a PNG image (or animation) show up when a character dies? Ace_V 6 574 08-31-2025, 11:07 PM
Last Post: kyonides
   Image transitions FriKitty 2 2,678 11-24-2024, 05:00 AM
Last Post: DerVVulfman
   Sorting Items in Shop Window Mel 13 23,286 01-18-2018, 05:49 AM
Last Post: DerVVulfman
   Showing only specific skills in a window Mel 2 7,557 01-12-2016, 01:34 PM
Last Post: Mel
  Changing Window Styles in Game JackMonty 8 13,924 03-22-2013, 11:54 PM
Last Post: JackMonty
   Something I noticed about the Advanced Shop Status Window yamina-chan 5 11,906 08-21-2011, 09:16 PM
Last Post: yamina-chan
   [Atoa SBS] Changing the command window font MegaPowerNinja 3 10,166 04-12-2011, 10:23 PM
Last Post: Victor Sant
   Repositioning the actor command window. MegaPowerNinja 4 11,324 04-12-2011, 05:21 AM
Last Post: MegaPowerNinja
   Need Help on Making Battle Status Window riou 4 13,259 03-22-2011, 06:04 AM
Last Post: Victor Sant
   Window Visibility Problem computerwizoo7 7 14,114 05-10-2010, 05:53 PM
Last Post: deValdr



Users browsing this thread: 1 Guest(s)