Simple Eyes Blinking Idle Animation For 2D Character In Game Made With Unity Software | Easy Way @AlexanderZotov
Simple Eyes Blinking Idle Animation For 2D Character In Game Made With Unity Software | Easy Way  @AlexanderZotov
Uploaded August 2021 | Updated September 2026, 3 weeks ago
#unityanimation
In this video I show you a simple way to give a character a blink idle animation which is performed with random time intervals.

I play games here - twitch.tv/zzotoff
You are very welcome :-)

Thank you :-)

Project Here drive.google.com/file/d/11zr883hdLX_xfqjSsKm_zgZn1HxpESNd/view?usp=sharing

Here is my empty project. Let me set it up quickly.
Here I have a character simple sprite sheet. First I need to slice it. Select it. Set sprite mode to multiple. Hit Apply to save toe change and go to the sprite editor. Here I select the automatic slice option and hit the slice button. Make sure slice boundaries outline a picture accurately. Very good. Hit apply to save the changes. Expand the sprite sheet and bring the first sprite to the hierarchy. Here is my character. Let’s create Idle animation first. Select the character and go to the animation window. Hit create new animation. I rename it as Idle Animation. Take a sprite with open eyes and put it to the timeline. Idle animation is ready. Create new clip. This one will be a blink animation. Take the first sprite and put it here. Take the second one and put it here. Take the first one again and put it here. Let’s check it out. Animation runs too fast. Reduce the number of samples down to 10. Hit enter. Let’s see. Ok. Notice that animation duration is about 0.5 seconds. We will need this value in the script. Blink animation is done. Let’s examine the script that will control our animations. Here it is. It’s a pretty simple one. I use coroutine to switch animator states. It's time to blink variable represents the time interval between blinks. So in Update I check if that time interval has passed and if it has then blink coroutine is started. In coroutine I switch to blink animation and in 0.5 seconds I switch back to Idle animation. And after that it's time to blink variable gets a new random interval. between 0.5 and 2 seconds. Script goes to character. Now I can hit play and see how it blinks.
Simple Eyes Blinking Idle Animation For 2D Character In Game Made With Unity Software | Easy WayAMAZING PHONE STAND or HOLDER IN 5 SECONDS VERTICAL AND HORIZONTAL | DIY | ORIGAMIHow To Detect Swipe And Tap Touch Gestures In Android Game Made With Unity Software To Control ItUnity Tutorial How To Move Gameobject With Offset Between Touch Position And Objects PositionHow To Move A Game Object With Arrow Keys In A Game Made With Unity Software? Simple Tutorial.How To Play Different Random UI Button Sounds When Its Clicked In Unity Game | Simple TutorialThe Best 2D Zombie Shooter Game Ever Existed Made With Unity Software Or At Least It Could BeTutorial How To Jump 3D Object With Swipe By The Screen In Mobile Unity Software Game Android Or iOSUnity Tutorial How To Load Next Or Previous Scene In Your Game Using Some Triggers And Scene ManagerUnity 2D Tutorial How To Make Jetpack Feature For Android Game | Hold Finger Down Character Goes UpLets play!How To Turn UI Button On And Off Make It Interactable Or Not In Unity Game | Simple C# Script
Alexander Zotov |

Simple Eyes Blinking Idle Animation For 2D Character In Game Made With Unity Software | Easy Way

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER