-
blink expression
Hey guys. Trying to make a character blink.
Basically I’m trying to set it up so every 3 seconds we decide if it wants to blink or not. If it does, then it’ll hold the duration of the blink for 15 frames or .5 seconds.This is where I am:
holdTime = 2
seed = (time/holdTime);
seedRandom(seed,true);
random(0,100)if ( opacity => 50){
100
}else{
0
}if ( opacity = 100){
holdTime = .5
}else{
2
}I’m trying to say pick a random number between 100 and 0,then round it to 100 or 0 based on its value, and if it is 100 then change the hold time to a half second.
I really want to set it up so it rolls the dice every two seconds, but I can’t figure it out. I have my manual open in front of me, and just can’t crack it.The blink is just another layer that sits on the character.