Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Triple Triad script problem </3

Everything seems to work fine BUT when I play, all the windows/pictures the game goes through pile up and DONT erase! (i.e.:
http://img164.imageshack.us/img164/6276/13649965mr0.jpg[/img]

This only happened after I changed lines 28-34 in "Window_Base" with this:

def dispose
    return is disposed?
    # Dispose if window contents bit map is set
    if self.contents != nil
      self.contents.dispose
    end
  end

If I left the script normal without changing this part then it wouldn't work at all.
Please help!

Triple Triad thread:
http://www.rmxp.org/forums/index.php?topic=5929
 

khmp

Sponsor

Try changing your dispose method to:
Code:
def dispose
  return if disposed?
  super
end

You have "is" instead of if. So what it might be doing is returning before it reads anymore code which explains why you wouldn't have an error. At least I hope that's what it is.

Good luck with it momonari_junta! :thumb:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top