|
-
Random Eye Blinking
Hello all,
A novice coder here with a, hopefully valid, question. I have a character with blinking eyes. In order to make the eye blinking look natural I wanted each interval between blinks to be random. Unfortunately my code generates one random number and applies it to all the intervals. Is there something I can add to this code to make a truly random # for each interval?
Any help would be greatly appreciated! - B
---------------------------------------
function blink() {
evilblink.gotoAndPlay("blink");
}
function Blinkorama() {
setInterval(blink, random(3000)+1000);
}
Blinkorama();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|