- Home /
Shade Cloak in Unity
Hello, I'm making a 2D platformer game and I want the dash ability to work pretty much like Hollow Knight's Shade Cloak ability. However, I'm relatively new to Unity and am not sure how to tackle passing through an enemy only when the player is dashing and was wondering if someone here could help me get on the right track please? I appreciate any help and thank you.
Answer by wehttam359 · May 22 at 06:00 PM
Try using Physics2D.IgnoreLayerCollision. As soon as you start dashing, disable collision between the enemy layer and the player layer. When you are finished dashing, reenable it.
Your answer
Follow this Question
Related Questions
What is the best/easiest way to align a 2D rigidbody to specific sections of a sprite? 1 Answer
How can I make an object stop all momentum and hold it's position in air? 1 Answer
2D Detect collisions of a 2D block only on left/right (not top/bottom) 0 Answers
Why is there a gap between my player and the wall during wall slide? SOLVED 2 Answers