[RMXP] cockroach's Skill Tree script changes all blank backgrounds into the title screen image

● ARCHIVED · READ-ONLY
Started by Tehprince 4 posts View original ↗
  1. For some reason, whenever the skill tree scene is called, any and all blank backgrounds in the game are suddenly replaced with whatever image is set to be the title screen image, and I'm not entirely sure why.

    Link to the script
    https://forums.rpgmakerweb.com/index.php?threads/cockroachs-skill-tree.43430/

    When I say the backgrounds are, "replaced" it's actually more like the title screen image is underlayed behind every map and menu. This effect even appears in the script demo if you erase a couple of the map tiles.

    Pictures
    Before.png After.png Affected pause menu.png

    If anyone could explain why this happens, or how to prevent it from happening, it would be much appreciated.
  2. So it looks like the script calls up the title and draws it behind the skill tree scene to fill in any blank space that might be there (even though normally there isn't any), but then it forgets to get rid of the drawing once you close the scene so it hangs around like you saw. Paste the snippet below into your script editor below the original skill tree script and it should handle the disposing of the title screen.
    Spoiler
    Code:
    class Window_SkillTree
    
      def dispose
        @sprite.dispose
        dispose_arrows
        super
      end
     
    end
  3. That did the trick, thanks for the help.
  4. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.