Hello crown lovers! My name is Peter. I have an idea to make grass that will sway in the wind. The Wind Simulator is easy to do:
require "math" local physics = require( "physics" ) physics.start() math.randomseed( os.time() ) function rt() local n = math.random( -1, 1 ) if n==0 then n=n+1 end print(n) physics.setGravity( n, 0 ) end timer.performWithDelay(2500,rt, 0)
And now it remains to make a sprite “grass”. Add to it the physical body and make it flexible. But I did not find the property flexible. I ask for help. I’ll be glad!