draw lines on click on/off

Home Forums Puzzles draw lines on click on/off

This topic contains 6 replies, has 2 voices, and was last updated by Ivan Lyubovnikov Ivan Lyubovnikov 14 hours, 43 minutes ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #21633
    abin
    abin
    Newbie

    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 :)

    Attachments:
    You must be logged in to view attached files.
    #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
    abin
    abin
    Newbie

    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
    abin
    abin
    Newbie

    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
    abin
    abin
    Newbie

    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.