Hello, since I'm using a different style than default, how do you turn off the shade that automatically happens when you place walls? I trying to make it not auto generate shade.
How to turn off the auto shade?
RPG Maker MV Supportyou can't.
that's hardcoded by the engine.
that's hardcoded by the engine.
use the shadow tool to set or remove shadows
Yes, the shadow tool can be used to remove them, but there's no way to stop them drawing. I often find some that I've missed, and it's a pain in the neck to go through and remove them, so I wrote a little plugin to do it:
Just save that in your plugins folder as RemoveAutoshadows.js and add to your plugin manager. While you'll still see the autoshadows when you edit maps, they won't be there when you play the game. Note - this will remove ALL autoshadows, even the ones you draw yourself, so only use it if you want ALL of them gone.
Code:
// Remove autoshadows from map
DataManager.onLoad = function(object) {
Shaz.Utility.DataManager_onLoad.call(this, object);
if (object === $dataMap) {
var indexStart = $dataMap.width * $dataMap.height * 4;
var indexEnd = $dataMap.width * $dataMap.height * 5;
for (var i = indexStart; i < indexEnd; i++) {
$dataMap.data[i] = 0;
}
}
};
Just save that in your plugins folder as RemoveAutoshadows.js and add to your plugin manager. While you'll still see the autoshadows when you edit maps, they won't be there when you play the game. Note - this will remove ALL autoshadows, even the ones you draw yourself, so only use it if you want ALL of them gone.
Thank you! edit: Nevermind, I figured out how to make a js file. Thank you for the code. edit2: it came up with an error: Shaz is not defined
Sorry - try this instead:
Code:
var _DataManager_onLoad = DataManager.onLoad;
DataManager.onload = function(object) {
_DataManager_onLoad.call(this, object);
if (object === $dataMap) {
var indexStart = $dataMap.width * $dataMap.height * 4;
var indexEnd = $dataMap.width * $dataMap.height * 5;
for (var i = indexStart; i < indexEnd; i++) {
$dataMap.data[i] = 0;
}
}
};
I still see the shadows in game for some reason.
Can you check the console to see if it's given any error on the plugin? Post a screenshot, if it has.
Could you also post a screenshot of the map in the editor, and in the game?
There are autoshadows on the water tiles which can't be removed, as they're a part of the water tiles themselves and not separate shadows.
Could you also post a screenshot of the map in the editor, and in the game?
There are autoshadows on the water tiles which can't be removed, as they're a part of the water tiles themselves and not separate shadows.
Q
where do I upload them to? also, how do you access the console? (I seen that you posted the script over in js snipet, should I copy the script there?)
quick question,
where do I upload them to? also, how do you access the console? (I seen that you posted the script over in js snipet, should I copy the script there?)
Just put them on some image hosting site and post a link to them.
Gonna just edit the photos in GIMP right quick (Gimme a sec and i'll upload it to imgur)
edit:
edit:
any errors in the console? Could you show a screenshot of your plugin manager?
(How do i access the console)
Hit F8 when you play
edit - nevermind - it's not working for me either. Give me a few minutes to check, as it's working okay in the project I have it in.
okay - use the one I have in post #3 of this thread:
https://forums.rpgmakerweb.com/index.php?threads/js-snippets-thread.92501/
I have no idea why that one works and this one doesn't. The only difference is that the one in that thread (that works) is wrapped in a function. But I've done other stuff without putting it in a function and it's worked fine.
Anyway, tested the one in the link above and it works fine.
edit - nevermind - it's not working for me either. Give me a few minutes to check, as it's working okay in the project I have it in.
okay - use the one I have in post #3 of this thread:
https://forums.rpgmakerweb.com/index.php?threads/js-snippets-thread.92501/
I have no idea why that one works and this one doesn't. The only difference is that the one in that thread (that works) is wrapped in a function. But I've done other stuff without putting it in a function and it's worked fine.
Anyway, tested the one in the link above and it works fine.
Thanks, that worked.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-turn-off-the-auto-shade.106268/