Title says it all. I am guessing there's a value for the shadow pen color somewhere, but I have no idea where to look for it. Anyone know? Thanks!
Can you adjust the color of the Shadow Pen?
RPG Maker MZ SupportShort answer: Yes.
Long answer: No. I'm sure it's possible to write a plugin for this, and maybe somebody has (I couldn't find one in a quick search), but there's at least not an option for it in the editor. It's definitely possible in theory, I just have no idea how to get you started on that except to suggest you post in plugin requests.
Long answer: No. I'm sure it's possible to write a plugin for this, and maybe somebody has (I couldn't find one in a quick search), but there's at least not an option for it in the editor. It's definitely possible in theory, I just have no idea how to get you started on that except to suggest you post in plugin requests.
There is another option, add a shadow with the settings you want as tile to your tileset - like in these and paint shadows with tiles:
But in editor you can't change shadow pen parameters.
But in editor you can't change shadow pen parameters.
It is known as shadowBits in the code.
In MV it uses a bitmap and it is RGBA color for shadow, but for MZ it is much different. It uses the layers and tiles.
You can make them disappear, or you can do some funny stuff like this.
Edit:
In MV it uses a bitmap and it is RGBA color for shadow, but for MZ it is much different. It uses the layers and tiles.
You can make them disappear, or you can do some funny stuff like this.
Edit:
I have created a plugin for you and an image to accompany it.
The plugin is free for noncommercial and commercial use. It can be edited and distributed. No credit required.
You do not need to use my image provided. If you plan to make your own image, then create a 24 by 24 pixel image with the color of your choice with the opacity you like.
You will notice comments in the plugin, the text in front of //, may that guide you further.
The image I am providing is called MyShadow.png it is RGBA(255, 0, 0 50), meaning it is red and close to fully transparent.
Good luck, have fun. I am going to sleep now zzz.
Save the plugin as ShadowBits_Go_Brrrrr.js
MyShadow.png:
Here is a test image of my lovely house using my plugin.
The plugin is free for noncommercial and commercial use. It can be edited and distributed. No credit required.
You do not need to use my image provided. If you plan to make your own image, then create a 24 by 24 pixel image with the color of your choice with the opacity you like.
You will notice comments in the plugin, the text in front of //, may that guide you further.
The image I am providing is called MyShadow.png it is RGBA(255, 0, 0 50), meaning it is red and close to fully transparent.
Good luck, have fun. I am going to sleep now zzz.
Save the plugin as ShadowBits_Go_Brrrrr.js
Tilemap.prototype._addShadow = function(layer, shadowBits, dx, dy) {
if (shadowBits & 0x0f) {
const w1 = this.tileWidth / 2;
const h1 = this.tileHeight / 2;
for (let i = 0; i < 4; i++) {
if (shadowBits & (1 << i)) {
const dx1 = dx + (i % 2) * w1;
const dy1 = dy + Math.floor(i / 2) * h1;
layer.addRect(8, 0, 0, dx1, dy1, w1, h1);
// You can replace number 8 with any value from 0 to 8
// In your database in Tilesets, there are images; A1 to E
// 0 = A1 2 = A3 4 = A5 6 = C 8 = E
// 1 = A2 3 = A4 5 = B 7 = D
// The two 0s are x and y coordinates of the image
// You can use MyShadow.png or use whatever image you want
}
}
}
};MyShadow.png:
Here is a test image of my lovely house using my plugin.
My goodness! That’s amazing! Thank you so much for creating this, and so quickly too! (Now I need to learn how to use plugins, but that’s probably not too hard. (; ) Again, thanks!!!!
@Zeireth a couple small questions since I am new to plugins. I have managed to import your plugin (it took a bit to figure out where to put it and how to add it), but it does not appear to be working. I have set
layer.addRect(8, 0, 0, dx1, dy1, w1, h1);
to layer.addRect(6, 0, 0, dx1, dy1, w1, h1);
and placed a semi-transparent image on Tileset C in the top-left corner. From what I understand, this should be correct and it should use that image? Unfortunately it did not.
I attempted to troubleshoot by changing it to layer.addRect(0, 0, 0, dx1, dy1, w1, h1); which should have pulled a water tile as an obvious silly shadow, but it did not. It kept using the existing Shadow Pen.
I am also getting this error message when I import the plugin:
I'm not sure what I'm doing wrong, and any advice would be greatly appreciated. Thank you.
layer.addRect(8, 0, 0, dx1, dy1, w1, h1);
to layer.addRect(6, 0, 0, dx1, dy1, w1, h1);
and placed a semi-transparent image on Tileset C in the top-left corner. From what I understand, this should be correct and it should use that image? Unfortunately it did not.
I attempted to troubleshoot by changing it to layer.addRect(0, 0, 0, dx1, dy1, w1, h1); which should have pulled a water tile as an obvious silly shadow, but it did not. It kept using the existing Shadow Pen.
I am also getting this error message when I import the plugin:
I'm not sure what I'm doing wrong, and any advice would be greatly appreciated. Thank you.
Do you understand that plugins can't change the editor? In order to see the effects of what you're doing, you need to include the plugin, save your project, run the playtest and start a new game.
Then, in-game, you should see whatever tile you've chosen.
The other thing to make sure you realize is this will replace all of the shadows in your game. You would need a more complex plugin that uses notetags to replace them on a per map basis (or just do what Soulrender suggested, which is the common solution).
ATT_Turan is correct. This plugin replaces all shadows created with shadow pen. You cannot see the changes in the editor. No one has access to the editor code except for developers of the application.
This plugin like all plugins have to be ran on a fresh new game to see changes.
Also the reason you see "The plugin ShadowBits_Go_Brrrr may not support RPG Maker MZ" is because it is missing @target MZ. This is a free plugin I created. I have set requirements to myself to make a plugin in under 30 minutes for myself to classify it as a free plugin.
Below is something I should have placed above all the code, it was late at night and I hardly bother doing with plugins for request on the forum.
You don't need this in your copy. It doesn't change how the plugin works. All it does is give the plugin a description, author, and gets rid of may not support RPG Maker MZ.
I should also clarify that the plugin only works for RPG Maker MZ.
/*:
* @plugindesc ShadowBits_Go_Brrrr changes all shadows of the shadow pen.
* @author Zeireth
* @target MZ
*/Oh! I did not know that. Thank you.
Thanks! I was unaware that you did not see the effects of plugins in the editor. I wasn’t sure if there was something wrong. I really am very new to plugins — this is the first one I’ve ever used, so I honestly did not know if it was a problem or not.
I will include the extra bits in my copy of the plugin just to teach myself how it works so that I understand better. Thank you again!
No problem. We all once were very new. You are welcome my friend. Please take care. Have a great weekend 🙂
I'm late to this conversation, but is there a downloadable version of this? I'm still fairly new to the RPG Maker community and IDK if I have the brain cells to figure out how to punch in the code. Thanks in advance!
Just save it in a txt file and save the text file with a js extension, as mentioned:
Original thread: https://forums.rpgmakerweb.com/threads/can-you-adjust-the-color-of-the-shadow-pen.148383/