Is there any plugin or a way to make to change the opacity of the grass? like keeping the way it hides half the body but with no transparency?
Grass opacity
JS Plugin RequestsNot sure I understand. You don't want the lower part of the body to show at all?
That is done by making the lower body semi-transparent, not by changing the grass. A plugin to not show the lower body at all should be fairly simple.
That is done by making the lower body semi-transparent, not by changing the grass. A plugin to not show the lower body at all should be fairly simple.
I've moved this thread to Plugin Requests. Thank you.
Try the following (save as any name with a .js extension):
Code:
var _shaz_sprite_character_createHalfBodySprites = Sprite_Character.prototype.createHalfBodySprites;
Sprite_Character.prototype.createHalfBodySprites = function() {
_shaz_sprite_character_createHalfBodySprites.call(this);
this._lowerBody.opacity = 0;
};
thanks a lot.
it worked, but since I'm using custom sprites they seemed too tall to hide half the body, they're 90 pixels tall so it looks like they just hide their ankles, it's still pretty useful to me since i wanted to make shallow water for them to walk on so it's cool, if they could hide more of their body would be cool but how it's done also works for me, thanks a lot man.
It doesn't actually hide "half" the body, it's just a certain number of pixels from the bottom. So if you're using much taller sprites than the default, that certain number of pixels will be a smaller portion of the whole thing.
@Shaz Awesome tip homie! Thanks for the knowledge 😉
...Change the 12 to whatever you'd like.
I think it would be to like 38 for your case.
...Alter and save as a .js
...but warning about coding it that way is if sprites less then 90 pixels will all be drawn the same way...
Working on a new bushSettings plugin now 😉
Edit:
Plugin is good to go. A start for now at least.
To fix the rest of that...
Code:
Game_CharacterBase.prototype.refreshBushDepth = function() {
if (this.isNormalPriority() && !this.isObjectCharacter() &&
this.isOnBush() && !this.isJumping()) {
if (!this.isMoving()) {
this._bushDepth = 12;
}
} else {
this._bushDepth = 0;
}
};
I think it would be to like 38 for your case.
...but warning about coding it that way is if sprites less then 90 pixels will all be drawn the same way...
Edit:
Plugin is good to go. A start for now at least.
Absolutely fantastic, thank you so much!.
No prob. 🙂 Happy to help. Thank you for the challenge :popcorn:
Actually got some nice ideas from this for future plugins.
Also updated once more now with a few more nice things 🙂👍
CT_Bolt's bushEx (v0.30+) Plugin: Click Here to View
Notetag Examples:
Code:
<bush:{"depth":35}>
<bush:{"opacity":"0"}>
<bush:{"depth":35, "opacity":"0"}>
<bush:{"depth":$gameVariables.value(1), "opacity":$gameVariables.value(2)}>
<bush:{"depth":48,"opacity":"$gameVariables.value(1)"}>
Extra Awesomeness Example:
Use this in any actor/event notetag:
Code:
<bush:{"depth":48,"opacity":"$gameVariables.value(1)"}>
Code:
if ($gameVariables.value(1) >= 255){this.opFwd=false}if ($gameVariables.value(1) <= 0){this.opFwd=true}(this.opFwd) ? $gameVariables.setValue(1, $gameVariables.value(1)+1):$gameVariables.setValue(1, $gameVariables.value(1)-1);
Demo also available now on page too 🙂
Updated again:
CT_Bolt's bushEx (v0.40) Plugin: Click Here to View
Can now use custom evals to determine when the bush sprite refresh happens
(so you can even make it where you don't need to be on a bush tile anymore lol...
...think this could almost be renamed to a different plugin now lol)
Example Notetag:
Code:
<bush:{"depth":48,"opacity":"$gameVariables.value(1)","refreshEval":"true"}>
Original thread: https://forums.rpgmakerweb.com/threads/grass-opacity.119606/