ScratchData LogoScratchData
Back to shadowcats's profile

Interactive Flowing Grass [99% Pen]

SHshadowcats•Created May 18, 2019
Interactive Flowing Grass [99% Pen]
4
4
59 views
View on Scratch

Instructions

Simply Press The Green Flag To Start! =========================================== -=How It Works=- Three lists, "X", "Y", and "Height" are given random values at the start. Then every second, a custom render block is run, drawing out each blade of grass. The grass is curved, and the curve is affected by 'trig curves' that make the grass move back and forth. Additional curves are thrown in using the movement, position, and direction of the mouse pointer through a second sprite, as to add the interactive part of the grass, where the mouse can move and bend the grass. Simple, right?

Description

I just wanted to make a game with swaying grass shaders, but lacking unity coding knowledge, I have some troubles (I am ok at unity). I decided to make a 2d shader in scratch instead

Project Details

Project ID310906068
CreatedMay 18, 2019
Last ModifiedJanuary 20, 2021
SharedMay 18, 2019
Visibilityvisible
CommentsAllowed