I need to draw a nice highlighted line from one object to another for the event to happen

Hi guys! Folks I need advice, I want to make a game like these Connexon (https://play.google.com/store/apps/details?id=com.vikinggames.connexon ) and Draw Line Parking ( https://play.google.com/store/apps/details?id=com.pandako.drawlineparking ) I know that both games are made on gdevelop, but I don’t understand how to do. In general, I need a way to draw a nice highlighted line from one object to another object in order to make an event. I’m new to this and would be grateful for a detailed answer thanks in advance community


I haven’t played any of these games but just by looking at the screenshots it seems that both use different concepts.
For the first one the pathfinding behavior and the DrawPathfinding-extension could be useful. For the pathfinding you can check here Pathfinding - GDevelop documentation and for the latter you can find the link to an example project here DrawPathfinding Update: Automatic creation of shape painter object and enforce absolute position by tristanbob · Pull Request #428 · GDevelopApp/GDevelop-extensions · GitHub.

For the second game the lines are probably just visuals to show which numbers are added. This could be done by drawing a line with the shape painter when the number is touched. Shape painter - GDevelop documentation

I guess this answer is not as detailled as you would like it to have. You need to give more details about the game mechanic first for getting an answer that hopefully helps you to proceed with your project.