This is the cover image of How to Make a Blinking Invincibility Power-Up in GDevelop article by Nate Lindley (aka ACP_Nate) of Awesome Combo Productions (ACP).

How to Make A Blinking Invincibility Power-Up in GDevelop

This is a GIF animation of 6 color-blinking super powered zombies from Truth: Save the Miners!.

Hey there. I’m ACP_Nate🙂 I’ve been thinking… what if the monsters got stronger when a player reaches level 4 in my game, Truth: Save the Miners!? After some exploration, I discovered how to make a blinking invincibility power-up in GDevelop — something similar to when Mario collects a star… except the bad guys get this boost!

This tutorial will show you exactly how I did it.

👉 How to Make A Blinking Invincibility Power-Up in GDevelop


STEP 1: Create the Trigger or Condition for Your Blinking Invincibility Power-Up in GDevelop

You might want your triggering condition to be a sprite collision, but for my example, I wanted all the monsters to get stronger at level 4. So, I decided to use variables.

I made a global variable called GlobalLevelCounter that increases by 1 every time the player moves to the next level.

This is a picture of Global Variables used in Truth: Save the Miners!.

Whether you choose sprite collisions (like collectible items), variable triggers (like my level counter), or another setup, you’ll need to establish the condition that starts the power-up action.


STEP 2: Enable the Flash Object Extension

This is a picture of of the Flash Object extension used in Truth: Save the Miners!.

Click the three-lined menu in the upper-left corner of the window. Then, click the “+” symbol near Extensions, and search for Flash Object.

You can use this to make a damaged character temporarily flash, or to signal power-ups like we’re doing in this example.


STEP 3: Add the Behavior to Your Object

After adding the extension, double-click the object that will become powered up. When the object window opens, click the Behaviors tab and add Flash Color Tint.

This is a picture of of the Flash Color behavior used in Truth: Save the Miners!.

Now your object is connected to the extension.


STEP 4: Write the Power-Up Logic

Once you’ve set your trigger and added the behavior, it’s time to create an action.

This is a picture of of the condition and action used in Truth: Save the Miners!. This is for How to Make a Blinking Invincibility Power-Up in GDevelop article by Nate Lindley (aka ACP_Nate) of Awesome Combo Productions (ACP)

This is where GDevelop’s if/then style of coding shines. My example includes the following conditions:

  • GlobalLevelCounter ≥ 4
  • Monsters is on screen
  • An inverted condition for Monsters is flashing
  • And most importantly, Trigger Once

On the action side, choose Flash a Color Tint, select the color you want to flash, and set the duration.

In this example, I made the monsters flash for 60 seconds. This prevents the condition from repeating every few seconds and keeps things smooth and optimized.


STEP 5: Define Your Power-Up‘s

This is a picture of of the condition and action for reduced damage power-ups used in Truth: Save the Miners!.

Finally… the fun part. Now, you can make your character or enemy move faster, shoot more bullets, drop extra loot, or – as in this example – reduce damage received. You can see in my example that I wanted the damage a blinking/flashing monster received to be reduced to 1, while non-blinking monsters would receive much more damage.


Wrapping Up Blinking Invincibility Power-Up in GDevelop

Now you know how to make a blinking invincibility power-up in GDevelop!

How did this tutorial help you? I’d love to see what you’re building. Click a social link below and show me what you are building – tag @AwesomeComboPro on X or u/AwesomeComboPro on Reddit.

Stay Creative, my friends!

This is the cover image of How to Make a Blinking Invincibility Power-Up in GDevelop article by Nate Lindley (aka ACP_Nate) of Awesome Combo Productions (ACP).