How can i "link" two lua files together?

So lets say i have LVL1.lua and i made that level and then i make a LVL2.lua

NOTE:in sublime when you code and you already have a word in the file it gives you suggestions…

So i wanted LVL2 to see what i typed in LVL1… is that possible??

Sounds like you want level 2 to include everything from level 1.

Store the level definition in tables, then simply copy the level 1 table into level 2 before adding new content.

SSK provides extensions to table.* for this (shallowCopy and deepCopy):

http://github.com/roaminggamer/SSKCorona/blob/master/ssk/extensions/table.lua

PS - Going offline for rest of day.

@all,

If you have suggestions for Sonic please post them.  I’m outta here for now.

Greetings!

Not sure of what you exactly need but i guess that what you want is the “require” function.

Here some helpful links:

https://coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

https://docs.coronalabs.com/api/library/package/require.html

Hmm… Thanks ! Kinda weird tho how you made you account today and i posted on my topic as your first post …? Not to be rude or anything haha … Were or are you on the forums as a different name by any chance??

Nope, just never posted before. I hope that that was what you needed though.

I’m sorry I guess I didn’t check the correct numbers… Well thanks… I think that is what I’ll need… I’m not sure yet .

Sounds like you want level 2 to include everything from level 1.

Store the level definition in tables, then simply copy the level 1 table into level 2 before adding new content.

SSK provides extensions to table.* for this (shallowCopy and deepCopy):

http://github.com/roaminggamer/SSKCorona/blob/master/ssk/extensions/table.lua

PS - Going offline for rest of day.

@all,

If you have suggestions for Sonic please post them.  I’m outta here for now.

Greetings!

Not sure of what you exactly need but i guess that what you want is the “require” function.

Here some helpful links:

https://coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

https://docs.coronalabs.com/api/library/package/require.html

Hmm… Thanks ! Kinda weird tho how you made you account today and i posted on my topic as your first post …? Not to be rude or anything haha … Were or are you on the forums as a different name by any chance??

Nope, just never posted before. I hope that that was what you needed though.

I’m sorry I guess I didn’t check the correct numbers… Well thanks… I think that is what I’ll need… I’m not sure yet .