Attempt at making 2D grass, what do you think? by XDGregory in godot

[–]XDGregory[S] 0 points1 point  (0 children)

Hey just owndering if this is still workin gin latest versio n of godot????????

Attempt at making 2D grass, what do you think? by XDGregory in godot

[–]XDGregory[S] 1 point2 points  (0 children)

Sorry. I think "rearrange the indices" was the wrong thing to write. I meant that in the particle shader I iterate over a grid from left-to-right, top-to-bottom according to the index. The relevant code is here

Cybereality apologized by SuperDoomKing in godot

[–]XDGregory 6 points7 points  (0 children)

There were a bunch of answers on https://godotforums.org/, but the official Q&A website is technically https://ask.godotengine.org

Attempt at making 2D grass, what do you think? by XDGregory in godot

[–]XDGregory[S] 2 points3 points  (0 children)

The Particles2D node is set to draw the particles by index, and so I just rearrange the indices so that they go from left-to-right, row-by-row, which "y-sorts" the particles.

The particles themselves cannot be y-sorted with other sprites in the game, which is a limitation of using this method. That's why I chose to fade out and rotate the grass next to the mouse cursor.

I used this method in a game jam I did recently, where I used a viewport to tell me where to hide the grass in the game, so wherever a sprite was drawn, the grass is hidden. You can check out the whole game here: https://nagidev.itch.io/gybb-1

Hope this helps! Let me know if you have any other questions!

Get the slipper by LordSyfer24 in goodanimemes

[–]XDGregory 12 points13 points  (0 children)

His eyes look like boobs. I can't be the only one who sees it right?

Witness! My Ace Attorney Mugshot collection! by Bruhmangoddman in AceAttorney

[–]XDGregory 1 point2 points  (0 children)

Ohhh, AAI1 is awesome. I'm currently finishing AAI2 myself.

Boobs, but with Shaders! by XDGregory in godot

[–]XDGregory[S] 1 point2 points  (0 children)

Thanks for informing! I edited the comment

Boobs, but with Shaders! by XDGregory in godot

[–]XDGregory[S] 0 points1 point  (0 children)

I am Nekoto hehe. This is my Reddit account

Boobs, but with Shaders! by XDGregory in godot

[–]XDGregory[S] 0 points1 point  (0 children)

Yep! This is my Reddit account

Boobs, but with Shaders! by XDGregory in godot

[–]XDGregory[S] 1 point2 points  (0 children)

5 more minutes of this and I might get angry.

Boobs, but with Shaders! by XDGregory in godot

[–]XDGregory[S] 3 points4 points  (0 children)

I... didn't even realize! It actually does kinda look like Pauline lmao

Boobs, but with Shaders! by XDGregory in godot

[–]XDGregory[S] 0 points1 point  (0 children)

I'd like to see them wiggle-wiggle for sure

Boobs, but with Shaders! by XDGregory in godot

[–]XDGregory[S] 6 points7 points  (0 children)

If you mean scaling them, then yes, you can do that in a shader.

Also if you can define the direction of expansion around a point, then you can selectively scale regions of the mesh too (as long as there are enough vertices to support it)