This obviously isnt achieving what I thought it would, I want the gameLoop() function to run when the file is ‘required’ by another file. How is this normally done?
[lua]local function gameLoop()
display.newText(“hello”, 25, 15, native.systemFont, 10);
end
Runtime:addEventListener(“enterFrame”, gameLoop);[/lua]
At the moment this just runs gameLoop over and over making very thick and blury text. [import]uid: 88429 topic_id: 17190 reply_id: 317190[/import]
[import]uid: 3826 topic_id: 17190 reply_id: 64769[/import]