The challenge is the seamless part. Segments are rarely exactly even dashes. There needs to be a way to create partial dashes at the end and the beginning.
I’m torn between tweaking my current method or switching to a single while event with a variable for distance and a node counter.
I’ll eventually complete it. I just need to be in the right mood. I should probably create a flowchart to better organize the concept.
I decided to swith to a while event. I also added a mode boolean variable (AddDash) to switch between adding a dash and adding a gap.
I love the new loop index. I used it to add a failsafe so I didn’t accidentally create an infinite loop with the while event. It exits the loop after either a success or 50 loops.
For testing, I decide to start with a single line going from a start to an end object. It’ll be easy to switch to pathfinding. I should be able to use the else events to draw the other half of a dash or advance the current x, y for the gaps and switch to the next node.
It probably needs testing and some safety checks but it seems like what I wanted. The Loop counter failsafe could probably be increased or removed after more testing.