Reputation: 3
So I am new to lua and I am curious how to make buttons. P.S. I work with Codea engine so the fn tag doesn’t work. I looked everywhere but I can’t find a good tutorial.
Upvotes: 0
Views: 919
Reputation: 28950
Codea doesn't seem to provide buttons. But you can draw and you can process touch input. So you have all that is necessary to create your own buttons.
Draw a button, then check wether the screen was touched inside the buttons boundaries.
and especially
https://codea.io/reference/Graphics.html
https://codea.io/reference/Touch.html
If you'd simply google "Codea button" you would find several examples...
Upvotes: 0