This code actually works in my 2D Platformer I'm developing in Unity but with a small catch, it reduces the collision of the player sprite, causing it to fall through the platforms. I'm wondering how can I tweak the code to make it so that he's temporary invulnerable but doesn't completely fall through the floor
This code actually works in my 2D Platformer I'm developing in Unity but with a small catch, it reduces the collision of the player sprite, causing it to fall through the platforms. I'm wondering how can I tweak the code to make it so that he's temporary invulnerable but doesn't completely fall through the floor
https://github.com/AleksandrHovhannisyan/aleksandrhovhannisyan.com/assets/63564377/4610136e-2862-4529-b951-dbc1c8e81188