- This topic has 5 replies, 2 voices, and was last updated 3 years, 4 months ago by xeon.
-
AuthorPosts
-
2021-07-08 at 3:02 pm #42646roboticelbowParticipant
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.2021-07-08 at 6:02 pm #42653xeonCustomerDid 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.com2021-07-09 at 2:12 am #42660roboticelbowParticipantHey 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.2021-07-09 at 5:48 am #42663xeonCustomerHi 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.com2021-07-09 at 4:24 pm #42710roboticelbowParticipantXeon 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!
2021-07-09 at 9:09 pm #42721xeonCustomerVery happy it worked out. Good luck.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com -
AuthorPosts
- You must be logged in to reply to this topic.