How to Make a Sprite Flash | Unity Ping Pong Function Explained @KetraGames
How to Make a Sprite Flash | Unity Ping Pong Function Explained  @KetraGames
Uploaded December 2023 | Updated September 2026, 2 weeks ago
In this Unity tutorial we're going to look at how to make the player’s sprite flash when they’ve taken damage and are invincible.

We'll cover how to create a coroutine to change the colour of the sprite over time and how to use the Ping Pong function to create the flash effect.

This is the seventeenth video in our series showing how to make a full top down 2D shooter game in Unity.

The playlist for this series can be found here
youtube.com/playlist?list=PLx7AKmQhxJFajrXez-0GJgDlKELabQQHT

The project files are available to our patrons here:
patreon.com/posts/94928815

Want to follow along? This project is a good starting point
patreon.com/posts/93282900

The full Top Down Shooter Project is available to our patrons here
patreon.com/posts/75231350

The final script can be found here
dotnetfiddle.net/t5aEJL

Help support our work:
► Patreon: patreon.com/ketragames

Follow us:
► Ketra Games: ketra-games.com
► Patreon: patreon.com/ketragames
► Twitter: twitter.com/ketragames
► Facebook: facebook.com/ketragames

Introduction - 0:00
Creating the Sprite Flash Script - 00:34
Explaining the Ping Pong Function - 04:32
Triggering the Flash when the Player is Invincible - 06:46
Summary - 09:56

#KetraGames #LearnUnity #UnityTutorials #UnityTips
How to Make a Sprite Flash | Unity Ping Pong Function ExplainedFix for Unity Intellisense Not Working in Visual Studio (Unity Tutorial)Spawning Health Collectables in Unity | Using Interfaces to Create Flexible Collectable BehavioursHow to Collect Items (Unity Tutorial)Local Transform vs World Transform - Whats the Difference?Procedurally Generating a Perfect MazeShow a Silhouette When Hidden Using URP Renderer Features (Unity Tutorial)How to Use Sorting Layers (Unity Tutorial | 2D Top Down Shooter)Improving Ragdoll Physics (Unity Tutorial)👉 Why URP Shadows Look Worse in Unity 6 (And How to Improve Them)Creating Simple Animations (Unity Tutorial)How to Make the Player Shoot (Unity Tutorial | 2D Top Down Shooter)
Ketra Games |

How to Make a Sprite Flash | Unity Ping Pong Function Explained

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER