Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Writing from one .lua-script into another?
Started by xazvre Mar 24 2019 10:52 AM

1 reply to this topic
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 1 posts
  • Corona SDK

Hello folks,


a little beginner question here.

Is it possible to have one function of one lua script write into an other lua script?
(the other lua script should save the changes)

Smth like

if (this happens)

 then (write THAT in .lua-script2)


I really want that this isnt temporary. I need lua-script2 to be permanently changed as long as another function is not activated.

[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,801 posts
  • Enterprise

Welcome to our Community Forums.


You can have lua files to talk to each other however you can't have Corona re-write code after it's compiled. What you can do is save information and use that information with existing code to cause your code to have the behavior that you want.