Hey uh a quick preface before I ask my question, I am making a 2D platformer with a similar capture mechanic, and since this game already has one written, I was wondering how it works? Like do you know how to get the ghosts and player to move the way they do when they're getting caught?
Sorry if this is a strange question I just want to know to save myself a lot of time.