You can certainly set flags using the composer.setVariable/.getVariable functions and your non-composer scene module can certainly access those. You just have to require composer in your module.
Secondly, and I do this a lot, I will use something like this:
local thisSceneName = composer.getSceneName( "current" ) print("thisSceneName ", thisSceneName ) local thisScene = composer.getScene( thisSceneName ) thisScene.view:insert( self.bullet[idx] )
In this case my module is creating a bullet and I want it in the current scene’s view group. You can add functions to your scene that modules could call doing something like this:
-- composer scene function scene:doSomethingSpecial( params ) -- do stuff in the scene -- self is the scene object end
-- external module local thisSceneName = composer.getSceneName( "current" ) print("thisSceneName ", thisSceneName ) local thisScene = composer.getScene( thisSceneName ) thisScene:doSomethingSpecial( x, y, x)
There are all kinds of possibilities. You could in each phase of show, set a variable in the scene that has the current phase so your module can monitor it.
Rob