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.

Having trouble linking an event to two Boolean statements

Home Forums Puzzles Having trouble linking an event to two Boolean statements

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #42646
    roboticelbow
    Participant

    Hello! I’m fairly new to Verge3D and as such am having a problem with testing for two true/false flags to activate an event. It’s my understanding from the Puzzles that I have constructed that it would work like this;

    If ScreenTop is Hovered, change TopHovered to True

    If ScreenTop is Clicked, change TopFocus to True

    If ScreenTop and ScreenHovered = True, change material of ScreenTop to OldWood

    It seems that the way I have the puzzle set up is not achieving that goal. Any help in properly formatting these puzzles would be amazing!

    Thank you in advance

    Attachments:
    You must be logged in to view attached files.
    #42653
    xeon
    Customer

    Did you happen to initialize both TopHovered and TopFocus to false at the beginning of your script, as I don’t see anything thing in the image provided?

    Variables are global but need a starting value. So may want to add that to your starting puzzles. If, you already have that. Try switching from True/False to 0 and 1. I find that it works more reliably for some reason.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #42660
    roboticelbow
    Participant

    Hey Xeon, thanks for your input, unfortunately neither of those approaches seemed to work. I’m sure its error on my part, could you take a look at the second iteration of puzzles I attached?

    Edit: After doing a little research I have since moved the items for initilization to the init tab. This did not change anything.

    Attachments:
    You must be logged in to view attached files.
    #42663
    xeon
    Customer

    Hi there,

    Ok….so correct me if I am making the wrong assumption but I think you are wanting the object ScreenTop to have a roll over state like a website button and then a previously clicked state. Is this correct?

    You dont necessarily want to move you initialization of your variable to the Init tab but thats a personal preference.

    I typically start my project with a Procedure that is called.
    In this case InitializeVaribles.

    Let me know if this works for you.

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

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #42710
    roboticelbow
    Participant

    Xeon I don’t know how to thank you enough! The puzzle formula you provided worked perfectly! This is really gonna put a dent in my workload, thank you so much!

    #42721
    xeon
    Customer

    Very happy it worked out. Good luck.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

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