AleksandrHovhannisyan / aleksandrhovhannisyan.com

My online resume and blog, created with 11ty, Sass, and JavaScript.
https://aleksandrhovhannisyan.com/
109 stars 26 forks source link

Works but how do I tweak it for 2D Platforming? #184

Closed Morkhelt closed 10 months ago

Morkhelt commented 10 months ago

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