To practice my coding chops I’m building a simple calculator. I have 10 display objects that represent the numerals 0 through 9. The idea is that you would enter a number by tapping it out on the number images, just like a regular old calculator. The problem I’m running into is figuring out what type of function I can create so that instead of incrementing the variable each time a number is tapped, the previous number that was entered remains and then new number is appended at the end.
Ex. If I hit the number 1 three times, the integer that should be stored should be 111, not 3.
I know how to do this in C#, but I’m at a loss how to approach this in Lua.
Thanks. [import]uid: 33647 topic_id: 13688 reply_id: 313688[/import]