How would I go about creating reactive animated grass

Xer0botXer0

Senpai
Hi guys,

So this sort of feels like a programming question, but I don't know in which direction to take it..

My idea is that you can just use animated sprites with distance_to_object(x,y,player) on the grass and then it will react, while also using the same with say rain to darken the grass and perhaps make it frown a bit, and squash a bit when walked on all dizzy like as it slowly spring sback to life.

But I'm trying to take a mathematical approach, although I don't entirely know how to do that.

Any ideas ?

I'm going to try out an idea now just to see, because I don't want to say show me how instead of saying look this is what I tried and it doesn't work for me.
 

RujiK

Member
@GMWolf made a nice tutorial about grass using vertex buffers:

https://forum.yoyogames.com/index.php?threads/swaying-grass-tutorial-gmwolf.28481/

Zack Bell also made a simpler version if vertex buffers/shaders intimidate you:

https://zackbellgames.com/2014/11/11/sprite-skewing-for-procedural-animation/

A tumblr dude named "Josh Maggard" made an even simpler version on his blog:

https://blog.maggard.me/post/134683639250/grass-squish-effect

And FINALLY, I myself have given a rough explanation using shaders:

https://forum.yoyogames.com/index.p...-water-graphics-ever.36711/page-3#post-416127

Take your pick! That should get you started ;)
 
Top