So I have a model of the solar system. It creates 8 (sorry Pluto) turtle objects that orbit the Sun in a StepAll function that incrementally move each turtle at the same time on the screen. I want to add a function that allows for a user to click on a specific planet and for it to display specific information about the unique turtle that was clicked (display info about planets etc.)
Is this possible?
If not I have thought of buttons, but making them move along with the planets seems tricky... Any help would be appreciated. Thanks!
It just so happens that I've a four inner planet simulator left over from answering another SO question that we can plug
onclick()
methods into to see how well this works with moving turtles:Generally, it works fine. Sometimes the planets stop in their orbits while the
textinput()
dialog panel is visible, other times they don't. I'll leave this issue for the OP to resolve, as needed.