Skip to content

Module programmer's FAQ Lua

celeron55 edited this page Sep 28, 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().

Clone this wiki locally