Opening new scene from title screen

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I've added a new command to Scene_Title, which pushes a new scene onto the stack.  When my scene opens, I can still see the title menu in the background.  I've also tried it with a goto rather than push, and it still does the same thing.  I've added SceneManager.clearStack() both before and after my scene call, and there's no difference.


Any idea how I can make the title screen disappear when I go to my new scene?
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
I've added a new command to Scene_Title, which pushes a new scene onto the stack.  When my scene opens, I can still see the title menu in the background.  I've also tried it with a goto rather than push, and it still does the same thing.  I've added SceneManager.clearStack() both before and after my scene call, and there's no difference.


Any idea how I can make the title screen disappear when I go to my new scene?
in simple by clearing the Background Sprite depending if you use Scene_Base or Scene_MenuBase :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
What's the command if I'm using Scene_MenuBase?
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
What's the command if I'm using Scene_MenuBase?
Scene_Test.prototype.createBackground = function(){
 Scene_MenuBase.prototype.createBackground.call(this);
 this._backgroundSprite.bitmap = ImageManager.loadSystem("");
};




I'm unsure it's also possible to switch the background to a fill in black :)  
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
thanks - I'll have a play and see if I can figure it out.
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
thanks - I'll have a play and see if I can figure it out.
or they also possibility that you can set the opacity to Zero XD I just noticed this command LOL


Scene_MenuBase.prototype.setBackgroundOpacity = function(opacity) {
this._backgroundSprite.opacity = opacity;
};


so put it to 0 before the scene Start and your background will be invisible xD
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Got it.


Just adding a new createBackground function for the scene that does nothing stops the previous background snapshot from showing.


Scene_XYZ.prototype.createBackground = function() {
};


Thanks for the ideas - it got me looking in the right direction :)
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
Got it.


Just adding a new createBackground function for the scene that does nothing stops the previous background snapshot from showing.



Scene_XYZ.prototype.createBackground = function() {
};


Thanks for the ideas - it got me looking in the right direction :)
you are welcome I forgot about it you can overwrite the method by doing that xD!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top