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

New pet peeve: Telling tech support personnel what something is doing, only for them to tell me (in excessively condescending tones) what it should be doing. Yes, I know what it should be doing, and if it was doing that, I wouldn’t be talking to you and your attitude problem about it right now, would I? >.<
uglywolf wrote on Khulse's profile.
Hello.
The rules I makes pun about on your last thread is about "Verify Files" before anything else, if the stuff comes from STEAM. Which means, if it could be fixed with just that, there is no need to redownload the whole stuff.
But glad the reinstall worked, hope you enjoy it and your days too.
uh oh, I just tapped into a fresh, deep vein of nightmare fuel right here guys:
51F2AC5E-A605-446E-9439-D77AA6A0B0ED.pngAdded console to my content thread here

Forum statistics

Threads
115,429
Messages
1,089,785
Members
150,185
Latest member
DarkPurplePrince
Top