Symbol_

Veteran
Veteran
Joined
Nov 28, 2017
Messages
144
Reaction score
21
First Language
English
Primarily Uses
RMMV
Hello!

I have a day night system for the game I'm making, and I'm using the Mog_SceneMenu Plugin (see below)

In the program by default there is a section for a rotating circle, see here:

In my game I currently have it hidden, but I'd like to use it:

Because the game has a day / night system, I'd like the circle to be a sun and moon depending on if its day or night, however in the plugin there is no section to change this circle dependant on variable/switch.

Is there anyone out there that would be able to help me out with this?

Thanks in advance
 

micoomer

Villager
Member
Joined
Apr 24, 2019
Messages
24
Reaction score
9
First Language
Indonesia
Primarily Uses
RMMV
You could change the code a bit, so the plugin can check what image to use for the circle.

In line 370, change the code to this:

Scene_Menu.prototype.createMagicCircle = function() {
this._variable = $gameVariables.value(id);
this._magicCircle = new Sprite(ImageManager.loadMenusMain("MagicCircle_" + this._variable));
this._magicCircle.anchor.x = 0.5;
this._magicCircle.anchor.y = 0.5;
this._magicCircle.x = Moghunter.scMenu_MagicCircleX;
this._magicCircle.y = Moghunter.scMenu_MagicCircleY;
this._field.addChild(this._magicCircle);
};

Change the variable ID to the one you desired, and it will check the value of those variables.
If the value is 0, the image used will be "MagicCircle_0.png", if the value is 1, it will be "MagicCircle_1.png" etc
 

Symbol_

Veteran
Veteran
Joined
Nov 28, 2017
Messages
144
Reaction score
21
First Language
English
Primarily Uses
RMMV
You could change the code a bit, so the plugin can check what image to use for the circle.

In line 370, change the code to this:

Scene_Menu.prototype.createMagicCircle = function() {
this._variable = $gameVariables.value(id);
this._magicCircle = new Sprite(ImageManager.loadMenusMain("MagicCircle_" + this._variable));
this._magicCircle.anchor.x = 0.5;
this._magicCircle.anchor.y = 0.5;
this._magicCircle.x = Moghunter.scMenu_MagicCircleX;
this._magicCircle.y = Moghunter.scMenu_MagicCircleY;
this._field.addChild(this._magicCircle);
};

Change the variable ID to the one you desired, and it will check the value of those variables.
If the value is 0, the image used will be "MagicCircle_0.png", if the value is 1, it will be "MagicCircle_1.png" etc
This worked perfectly, thank you so much for the expert help!
 

Latest Threads

Latest Posts

Latest Profile Posts

WE ARE THE BORG. YOUR BIOLOGICAL AND TECHNOLOGICAL DISTINCTIVENESS WILL BE ADDED TO OUR OWN. RESISTANCE IS FUTILE.
D2R save files are so broken. how was the beta test better then the full release. blizzard's last hope crashed and burned.
they're getting no more chances from me.
Anyone going to talk about Chris Pratt Mario?
My friend just gave me chocolate milk at lunch today! My day is now 1000x better. Yay, choco milky!! :kaojoy:

Forum statistics

Threads
115,332
Messages
1,089,092
Members
150,004
Latest member
Gerardo_ita
Top