About the lua module script

before, i have used corona sdk engine for make games. in their lua module scripts, they let to used their words(display. contentHeight) and official lua words(function, local)

so, why we can not use defold words in lua module script. please fix this quickly.

Can you be more specific / post an example of what you want to be able to do?

Of course you can use both Defold modules/namespaces such as go., vmath. etc and the normal Lua functions in a Lua module. What makes you think you can’t? And what’s the purpose of the modules if you can’t run Lua code in them?

3 Likes