Hey there,
I’m very excited with Corona!
Now i’m trying to port some knowledge that I have from as3.
So, problem one:
I have two lua files… The main one (obviously) and one called “screen”.
Now… on the screen one I just have:
[lua]
function start()
print(“HEY HEY”)
end[/lua]
On the main one I have:
[lua]local hello = require (“screen”)
function startFnc()
hello:start()
end
startFnc()[/lua]
So … what’s my problem here? Why can’t I call the start inside the “hello” / “screen”? It’s giving me errors…
Now inheritance. This is one of the best things that happened to AS3. Let’s say for example a level system. You have a main level where you have functions that are common to all the levels and then you have something like level1.lua, level2.lua… These level1, level2 need on inherit the main level! So we won’t need to always copy the common functions to the new file! Inherit plus override and stuff it’s awesome!
So… how can I do this? [import]uid: 35508 topic_id: 6296 reply_id: 306296[/import]