2012.6.24
I wanted to recreate the effect of a Wiggle that only shakes when something hits the ground, so I went through a lot of trial and error to make it look like Memo for this.
The idea is simple: run wiggle for a specified amount of time.
if (time >= 3 && time <= 4) {
wiggle(1000,20);
} else { }
value;
}
In the above code, this means that the wiggle will run for 3 to 4 seconds.
The time in the above code is the current time in seconds. (Note that it’s not a frame.)
I heard that there is a way to convert from seconds to frames, but it didn’t work for me. I made a visual match.
[itemlink post_id=”1977″]