- Home
- Forums
- Game Development Engines
- RPG Maker Javascript Plugins
- Javascript/Plugin Support
- Thread starterSirius270
- Start dateYesterday at 5:30 AM
- Status
- Not open for further replies.
Sirius270
Regular
- Joined
- May 2, 2020
- Messages
- 164
- Reaction score
- 57
- First Language
- English
- Primarily Uses
- RMMV
- Yesterday at 5:30 AM
- #1
Hello fellow game makers!
I am using the Foreground plug-in on a few of my maps, and it's great. I use it for shadows mainly. However, I added a time system, and... well... shadows seem goofy at night, and make the screen so dark, the Player cannot see.
Is there a way to edit the plug-in to allow for a script call that turns the image on/off? I'd love to throw that on there so that at x time, an event will turn it on/off automatically.
Thank you!
Last edited:
AquaEcho
Script Kitty
- Joined
- Sep 20, 2021
- Messages
- 3,204
- Reaction score
- 2,607
- First Language
- English
- Primarily Uses
- RMMV
- Yesterday at 5:55 AM
- #2
There probably is already a function it's calling after it reads the map notes. You'll have to link the plugin if you want someone to look for that function for you.
Sirius270
Regular
- Joined
- May 2, 2020
- Messages
- 164
- Reaction score
- 57
- First Language
- English
- Primarily Uses
- RMMV
- Yesterday at 5:58 AM
- #3
AquaEcho said:
There probably is already a function it's calling after it reads the map notes. You'll have to link the plugin if you want someone to look for that function for you.
I'm fairly sure it comes with RMMV.
Edit: confirmed, it comes with RMMV as a DLC.
Last edited:
ATT_Turan
Forewarner of the Black Wind
- Joined
- Jul 2, 2014
- Messages
- 15,558
- Reaction score
- 14,541
- First Language
- English
- Primarily Uses
- RMMV
- Yesterday at 9:56 AM
- #4
Just going by the plugin's instructions, it doesn't do what you want.
You would either use a different method to get the shadows, or keep that plugin and make multiple copies of the map to transfer the player to depending on the time of day.
Sirius270
Regular
- Joined
- May 2, 2020
- Messages
- 164
- Reaction score
- 57
- First Language
- English
- Primarily Uses
- RMMV
- Yesterday at 11:03 AM
- #5
ATT_Turan said:
Just going by the plugin's instructions, it doesn't do what you want.
You would either use a different method to get the shadows, or keep that plugin and make multiple copies of the map to transfer the player to depending on the time of day.
Thank you very much for having a look.
Yes/no question: would it be worthwhile for me to build-in the script calls? I'm tempted to try my hand at it; what kind of time investment would it likely be?
AquaEcho
Script Kitty
- Joined
- Sep 20, 2021
- Messages
- 3,204
- Reaction score
- 2,607
- First Language
- English
- Primarily Uses
- RMMV
- Yesterday at 11:06 AM
- #6
Sirius270 said:
Thank you very much for having a look.
Yes/no question: would it be worthwhile for me to build-in the script calls? I'm tempted to try my hand at it; what kind of time investment would it likely be?
Realistically, if you have no programming background I'm guessing hours until you manage to stumble upon the right script in the right place or until you give up.
E: Could you post what settings you're using for your map notetags?
Sirius270
Regular
- Joined
- May 2, 2020
- Messages
- 164
- Reaction score
- 57
- First Language
- English
- Primarily Uses
- RMMV
- Yesterday at 11:12 AM
- #7
AquaEcho said:
Realistically, if you have no programming background I'm guessing hours until you manage to stumble upon the right script in the right place or until you give up.
E: Could you post what settings you're using for your map notetags?
I do have programming experience, Javascript is just something I haven't officially learned in a long time. I can certainly provide that screenshot, though.
Eliaquim
Hakuen Studio
- Joined
- May 22, 2018
- Messages
- 3,448
- Reaction score
- 2,782
- First Language
- Portuguese - Br
- Primarily Uses
- RMMZ
- Yesterday at 11:29 AM
- #8
Hi there!
I think you can try to set the alpha(opacity) value of the foreground to a variable value.
Open the plugin with any text editor, and on the last function of the plugin, you can add a line:
this._foreground.alpha = $gameVariables.value(ID)
orthis._foreground.visible = $gameSwitches.value(ID)
one or another. Replace ID with the ID of a switch or variable you want to use.
For the variable, when it's value is 1 it will be visible. When it is 0, it will be invisible.
For the switch, when the switch is OFF it will be invisible. When it is ON, it will be visible.
Example:
Sirius270
Regular
- Joined
- May 2, 2020
- Messages
- 164
- Reaction score
- 57
- First Language
- English
- Primarily Uses
- RMMV
- Yesterday at 11:59 AM
- #9
Eliaquim said:
Hi there!
I think you can try to set the alpha(opacity) value of the foreground to a variable value.
Open the plugin with any text editor, and on the last function of the plugin, you can add a line:
this._foreground.alpha = $gameVariables.value(ID)
orthis._foreground.visible = $gameSwitches.value(ID)
one or another. Replace ID with the ID of a switch or variable you want to use.
For the variable, when it's value is 1 it will be visible. When it is 0, it will be invisible.For the switch, when the switch is OFF it will be invisible. When it is ON, it will be visible.
Example:
View attachment 302862
This worked BEAUTIFULLY. Thank you so so much!
I have to play with my conditional statements now, thank you!
slimmmeiske2
Little Red Riding Hood
- Joined
- Sep 6, 2012
- Messages
- 10,983
- Reaction score
- 7,625
- First Language
- Dutch
- Primarily Uses
- RMXP
- Yesterday at 6:30 PM
- #10
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.
- Status
- Not open for further replies.
Latest Threads
Bargain / negotiation mechanic on prices
- Started by Ademax
- Replies: 0
RGSS3 Script Requests
RMMZRequest: Change Movement Pathing For Character on Mouse Click
- Started by Vaksky
- Replies: 1
JS Plugin Requests
Functions, classes and scripts
- Started by bigtboss
- Replies: 3
RPG Maker MZ Support
RMMVBuff Plugin
- Started by Tilldead
- Replies: 2
JS Plugin Requests
Latest Posts
RMMZGauge Border Image
- Latest: Gigadragon78
JS Plugin Requests
RMMZRPG Maker MZ Graphical Design Mode Alternative
- Latest: Gigadragon78
JS Plugin Requests
RMMVCommunity Lighting on Key Items
- Latest: maruzero
Javascript/Plugin Support
how to create my own rpg game
- Latest: ZombieKidzRule
General Discussion
Latest Profile Posts
BZnii
Learning to made game
Today at 7:20 PM•••
ToshaAngel
Today I finished the plugin for text and icons above the events. I also added Text color, flashing animation, and the appearance of text when a character approaches.
I've seen a lot of similar plugins and I don't see the point in posting it on the forum. But if you like it, then I will definitely make a theme with this plugin.
Today at 5:16 PM•••
ilmania
Alright, the villager is here...
now the hard part, making a schedule for them
Today at 5:11 PM•••
Erif
Bit by bit, meet the people who embark on this journey of revenge, growth and war.
Today at 4:01 PM•••
Pitaya
Sorry for lack of updates.
here's the main combat theme, as done by potriel!
Today at 2:16 PM•••
Newest members
Forum statistics
- Threads
- 140,854
- Messages
- 1,304,479
- Members
- 186,646
- Latest member
- rosehunter2
- Home
- Forums
- Game Development Engines
- RPG Maker Javascript Plugins
- Javascript/Plugin Support