Hello! I'm looking for a way to draw a line or multiple lines from the player character to different events, as part of a hint system for my current project. Basically what I want to have happen is, the player presses a 'hint' key, and it will briefly draw lines from the player character to specified points of interest on the map, like a thread. The way I'm wording it in my head is like, the player character's map X and Y are set as the 'parent', and I want to set different events' X and Y coordinates as the 'children'.
Additional optional things would be allowing the player character to move and have the lines dynamically adjust based on their positioning, as well as a way to draw them with some amount of visual 'slack' or 'weight' to them to really sell the 'thread' motif, but I imagine those would be much more difficult to implement.
Including some visual mock-ups to better illustrate what I mean:
Not sure how feasible or even possible any of this is in Ruby, but I figured I would ask regardless.