Skip to content

Module programmer's FAQ Lua

t0suj4 edited this page Sep 29, 2014 · 3 revisions

Scene Lifetime (don't even wait until you have to ask; read this now)

If your scene object's (created by magic.Scene()) lifetime ends, the scene will disappear and will not be drawn anymore. Put it in a global variable and you will not have this problem.

If this does not work, use magic.Scene:new().

XYZ Doesn't work, but others claim that it does work for them!

Then ask them what version of buildat are they using and check your own. If those verions mismatch, you should either update, if your version is older, or report a regression when your version is newer. Assuming that there are no inter-module incompatibilities.