Forum Discussion
How to check if objects are intersecting multiple times
- WaltHamiltonSuper Hero
You've done some good work here, and are so very close to the answer. In fact, your second slide is on the right track. What you are looking for is the values of the sliders; the "intersect"s is distracting you.
You already know the value the sliders have to have to be in the correct spot, so you don't need the additional work of adding a hotspot and all its triggers. Simply stay with and "Adjust variable hotspotFound set true when slider1 moves if slider1 is between 4 and 6 AND slider2 is between 4 and 6 else set variable hotspotFound to false" and "Adjust variable hotspotFound set true when slider2 moves if slider2 is between 4 and 6 AND slider1 is between 4 and 6 else set variable hotspotFound to false"
Of course, you would need to leave slider1 and 2 at their natural values and not reset them.
By the way, you only need two variables for the sliders, the one that changes when it moves (current), and one to hold the old value. When it moves, compare the current to the old to see which direction to move, and then set the old to the current.
- Madeline-MCommunity Member
Thanks Walt, really helpful! You're right, it's much easier using the slider values.
Thanks also for looking at the slider variables, I've simplified it and am now only using two variables.
- WaltHamiltonSuper HeroYou're welcome. PIAWYC (Pass it along when you can).