Drawing lines/attaching lines

Help, idk why when I preview I can sometimes draw the line when I click on the object where the line is supposed to be attached, and sometimes I can’t draw a line. There are also times I had to click multiple times to draw the line. :smiling_face_with_tear:

Here is my code:

Here’s the video of what I mean:

Have you tried dragging that Pick All block out so that it’s not a subevent to Mouse Button Released or RedChrom being dragged, but just a subevent of AttachRight being True?

1 Like

There’s still time that I have to click multiple time :sob:

here’s the other event that don’t need to be clicked multiple times.

You need to check that everything that needs to be true is true. You can check the variables in the debugger although, I like to add a text object so I can see the value without having to see the debugger. I also like to add an action to play a sound or change the color of an object or even rotate an object by adding to its angle. Anything that gives immediate feedback that an action is being triggered. Also, make sure the collision mask is the right size.

1 Like