How to make a Dodge Roll with I-frames on a 2D Platformer

Hey guys!
So, I’ve been trying to make a 2D Platformer and I’m trying to make a dodge roll with i-frames where you roll through your enemies, kinda like Dead Cells. This is what I got so far from watching tutorials and buying courses online.


I can’t seem to figure out a way to make my roll go through the enemies and make the character invincible, but I’m happy with the rest.

Hey @Teizin, welcome to the community!

So what you’ll need here is a Set Collision Response to Channel node!

image

You’ll plug this in with your collision as your Target input.

I’d say one after the IsRolling bool is set to TRUE, and then another with the original response (Block or Overlap, whichever is the original) after setting IsRolling to FALSE. If you’re using another type of channel for your enemies, you’ll want to set the channel to the option the enemies are on for both of those :slight_smile:

This way it’ll be 100% non-interaction between player and enemies.

Thank you so much! :grinning:

1 Like