How to trigger the win screen widget when the player catches the AI?

I’m making a game where the player has to chase an AI and has to catch it in order to win, but i don’t know how to trigger the win screen widget once the player catches the AI. Can anyone show me how to do it?

Sounds like you should have a look into the events functions:

or a video tutorial:

This guy has some more good videos regarding similar topics

What does this part mean? Touch it? If so, it’s just this:

Yes i only want the player to touch the AI

also i tried this but it just disabled the Player’s movement upon contact, but no win screen was triggered">

Show us your script. The script I posted should do it, but you need to also create the widget and add it to the viewport.

somehow the create widget node itself doesnt work, so i changed it to open level by reference node and it works now

thank you for your help though <3