Hi, this is probably really easy but as part of one of my games I need text to appear in a text box when a button is clicked. I need the command to pick from a list of set text and place it in the text box. Similarly to the Age up mechanics in Instlife/Bitlife.
Do you just not know how to hook a method call to a button? Or how to pick from a list?
What are you having trouble with? You described what you want to do, but not what you have tried or what you are having problems with.
The problem is I don’t know where to start. I’ve tried lots of tutorials YouTube and most of the either dwell on other things or skip over the scripting that I need altogether.
Well, I would suggest you break down what you want to accomplish.
- Connect a onclick method to a button.
- Create a list of strings (hard coding is fine when you start, but there are better options)
- Have the method pick from the list
- Have your picked string assigned to a text object.
If you break down the task, it’s fairly easy to start finding what you want to do in tutorials.
thank you