Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Welko

Transparent menu background

Question

I am changing the menu architecture of my game trying to make a small menu on the corner and I want to make the background transparent.
 
This is the change I made related to this purpose:

class Scene_Menu
 def main
  @background = Spriteset_Map.new

I added @background.dispose and @background.update as well

The problem is I am using Pictures to make flashlight effect and dark and they appear above the menu, making it difficult to see the window.
 
Image:

temp.png



The game is in Brazilian Portuguese, by the way.

How can I fix this?

Edited by Welko

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

looks like spriteset_map draws pictures in viewport2, with a z value of 200.

try changing that z value, using:

class Spriteset_Map
attr_accessor  :viewport2
end
then, in your menu do

def main
  @background = Spriteset_Map.new
  @background.viewport2.z = [ some number. I'm guessing 1~99 will do ]
...
end

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...