Grass opacity

Necrojoker00

Villager
Member
Joined
Oct 31, 2015
Messages
27
Reaction score
12
First Language
Spanish
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?
 

Attachments

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,141
Reaction score
12,414
First Language
English
Primarily Uses
RMMV
Not 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.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
6,486
Reaction score
4,404
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.

 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,141
Reaction score
12,414
First Language
English
Primarily Uses
RMMV
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;
};
 

Necrojoker00

Villager
Member
Joined
Oct 31, 2015
Messages
27
Reaction score
12
First Language
Spanish
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.
 

Necrojoker00

Villager
Member
Joined
Oct 31, 2015
Messages
27
Reaction score
12
First Language
Spanish
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.
 

Attachments

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,141
Reaction score
12,414
First Language
English
Primarily Uses
RMMV
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.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
821
Reaction score
320
First Language
Javascript
Primarily Uses
RMMV
@Shaz Awesome tip homie! Thanks for the knowledge ;)
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, if they could hide more of their body would be cool
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;
    }
};
...Change the 12 to whatever you'd like.

I think it would be to like 38 for your case.
1585664848810.png
...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...
1585665556852.png
Working on a new bushSettings plugin now ;)

Edit:
Plugin is good to go. A start for now at least.
1585672777887.png
1585672976228.png1585673045216.png
 
Last edited:

Necrojoker00

Villager
Member
Joined
Oct 31, 2015
Messages
27
Reaction score
12
First Language
Spanish
@Shaz Awesome tip homie! Thanks for the knowledge ;)

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;
    }
};
...Change the 12 to whatever you'd like.

I think it would be to like 38 for your case.
View attachment 138328
...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.
Absolutely fantastic, thank you so much!.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
821
Reaction score
320
First Language
Javascript
Primarily Uses
RMMV
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 :):thumbsup-right:

CT_Bolt's bushEx (v0.30+) Plugin: Click Here to View
1585714510607.png

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)"}>
Replace 48 with the height of the character sprite.
1585713402568.png
Then place this as a script call in any events custom moveroute with repeat movement to fade the sprite in and out.
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);
1585713048553.png

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"}>
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Playtesting for Battle Castle is done, demo time for me was roughly 6 hours and 20 minutes. I'm going to pass it on to a few friends first, and after getting some feedback will be posting an official topic.
There's another Humble Bundle available now for RPG developer assets, this time focused somewhat more towards pixel art style games.
Ive got a long lost half uncle. Thats real cool.
I forget what is bumping rule in this forum. Is anyone know? Thank you.
BCj
Ew, why does my blogpost on the rpgmaker.net site look like a garbled mess? Are html codes disabled or something?

Forum statistics

Threads
97,909
Messages
947,778
Members
129,148
Latest member
lemminace
Top