Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Another simple idea — Gideros Forum

Another simple idea

ScouserScouser Guru
edited April 2012 in Code snippets
Ok I had this idea to animate some grass but without actually changing the images. Instead I used the matrix:setElements to distort the image by shearing it. This has the effect of shifting the top of the image left or right by a few pixels whilst keeping the bottom fixed in place.

I used 3 sections of a texture page and placed 50 grass sections on the floor, these are then randomly sheared to give a nearly realistic grass blowing in the wind effect.

Comments are welcome.

Enjoy.
+1 -1 (+4 / -0 )Share on Facebook

Comments

Sign In or Register to comment.