I’m trying to create a level selection screen. That includes a button for each level. I made a loop to dump out the buttons. Each button calls the same event handler which “will” in turn use a string representation of the function name to call to set up the level.
Example it would call:
Level1()
Level2()
.
.
.
Level40()
How do I get lua to take that string “Level1()” and call said function? I tried lua.eval() but Corona doesn’t seem to support it. [import]uid: 8434 topic_id: 4906 reply_id: 304906[/import]