Hello, I’m having a very difficult time pulling the chosen values from the OptionButton asset in my game. I’ve tried get_item_id, get_item_text, get_item_index, etc… but none of them output any values to my variable that it is tied to. Apologies in advance if this has been asked previously, but I couldn’t find anything of the sort. I’m assuming because it’s a rather intuitive thing, but I’m just not skilled enough to figure it out on my own.
For sure. I have a day selector OptionButton that I would like to output to the variable day_chosen as an integer so I can compare it to a randomly generated value that the user would have to match.
The end of that line should be ignored, because it’s just an example at this point. I can’t get any of the functions that come with OptionButtons to work. I’ve tried ID, text to int, everything. My debug always says that it returns as 0.
Ideally for the day_chosen variable to contain the number that is selected from the OptionMenu. Right now, that specific OptionMenu is populated with only numbers, and I’m trying to get the numbers from that and feed them into the variable so it can be compared to the user’s input.