We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

draw lines on click on/off

Home Forums Puzzles draw lines on click on/off

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #21633
    Anonymous
    Inactive

    Hallo Yuri,
    thank you for the new pre2 :). All works perfectly now.

    So I continue my little project.
    In my setting I’ve created button for showing all interactive objects.
    On click, it draws lines to objects but not remove them, when clicked once again.
    This my puzzle set for that. It looks like I miss something :)

    #21643

    Hi abin,

    I think you need to change the variable “lines-visible” in the if-do-else puzzle when both drawing and removing lines, for example like this:
    lines.png

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    #21649
    Anonymous
    Inactive

    yes. it works but only one time and with doubleclick on button. I have big delay between clicks. Don’t know howto understand is.

    #21651

    I made a simple example with that puzzle setup and a button that should switch lines on/off on click. Here it is: draw_lines.zip

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    #21654
    Anonymous
    Inactive

    Thank you, Ivan,
    I reproduce that but I have the same issue. So I think, it must be elsewhere some problem. I will generate the project again and debug each file later. Thanks a lot. I let you know what I’ll find.

    #21681
    Anonymous
    Inactive

    Dear Ivan, I couldn’t find the problem, so I generated a new project and program everything new very carefully. It was definitely a wrong puzzle setting in some other part of the project, thank you again. This way I could even spare the Bytes. :)

    #21729

    Glad it worked out! :good:

    Co-founder and lead developer at Soft8Soft.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.