Hello) Thank you very much for your help)
Yes, this is how it should work:
- the player presses a button to inspect their surroundings
- we check what surrounds us and inspect the first main item found
- the main element creates and displays a widget with relevant information
I made corrections to my code, but it doesn’t work again(
I found a problem with the scroll variable in my widget. The variable is not public and I can’t switch it. Maybe that’s the problem?