It's like other game engines. You draw a hitbox on an event and check for collision. This plugin is heavily inspired by Game Maker Studio and GDevelop.