I want to make a ledge grab mechanic for my game but I only know how to do it by manually placing sprites on EVERY ledge which my game is far to big to do that. so I need a script that will detect if some requirments are met and then place it
Is 5+ tiles tall
Has 3 empty tiles in front of it
the ledge its on is at least 2 tiles wide