Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2660

LunaLua Help • weird behavior of globals

$
0
0
i am trying to make a library with the following structure:

library.lua

Code:

function onStart()    --Do stuffend
luna.lua

Code:

require("library")
for some reason, the onStart function in the library isn't called. i've tested playing a sound effect in the global scope of library.lua and luna.lua, as well as within a new onStart function within luna.lua, and these all trigger. but if it's specifically within the onStart specified within a require, it doesn't work. why is this happening?

Statistics: Posted by DigitalDetective47 — Thu May 01, 2025 2:56 am



Viewing all articles
Browse latest Browse all 2660

Trending Articles