Hey there all-
Im trying to create a swaying piece of grass using the easing equation, but I think I’m getting it all wrong. Heres what I have, but it doesnt work at all:
[AS]
blade._rotation=0;
blade.onEnterFrame = function(){
if(this._rotation < 1){this._rotation +=(20 -this._rotation)/10;}
else if (this._rotation > 10){this._rotation +=(0 -this._rotation)/10;}
}
[/AS]
Is there an easy way of creating a swaying blade of grass. Thanks for the Help!!! :afro: