If you're new to Game Maker, or even if you're experienced, the help manual at F1 or middle mouse clicking on any function should be your first resource for finding what you Kodi nox need.
Hi! Maybe something like that? Let's say this is your character logic, when it collides with the path it calls a game over event. Check the attached bbdoc for an example.