This is an interactive grass system for 2D side-scrolling games.
After setting up the character’s facing direction in the character Blueprint, the grass will sway directionally based on the character’s movement direction when the character overlaps with it.
You can replace the grass with any custom grass image you create or import.
When there is no interaction, the grass will sway automatically, and both the swaying amplitude and frequency are fully controllable.
The grass can also interact with enemies, but you must define the enemy’s facing direction in the Behavior Tree or the enemy Blueprint.
This project does not include the logic for determining enemy direction.