Hi,
In my current game I have setup display groups using the SSK2 Quick layers function like thus:
layers = quickLayers ( sceneGroup, "background", "playground", "bomblayer", "aliens", "foreground", "hud" )
What I have found though is that when using an emitter for a particle effect…
splosion = ssk.pex.loadPD2 (layers.bomblayer, spX, spY, "splosion.json" )
you would expect that an explosion that is triggered on the ‘bomb layer’ display group would be partially hidden by objects that are in the ‘aliens’, ‘foreground’ and ‘hud’ groups but they’re not. Regardless of which layer I place the emitter the particles are always on top of everything.
I have also tried using regular display groups as opposed to the SSK2 QuickLayers but that made no difference,
require "ssk2.loadSSK" \_G.ssk.init({enableAutoListeners=true}) local newRect = ssk.display.newRect local quickLayers = ssk.display.quickLayers --local layers = quickLayers ( sceneGroup, "background", "playground", "bomblayer", "aliens", "foreground", "hud" ) local background=display.newGroup() local foreground=display.newGroup() local back = newRect( background, centerX, centerY, { w = fullw, h = fullh, fill = \_DARKGREY\_ } ) local fore = newRect( foreground, centerX, centerY, { w = fullw, h = fullh, fill = \_DARKGREY\_ } ) local explosion = ssk.pex.loadPD2 ( background, centerX, centerY, "greenbarrier.json" )
so is this a Corona level thing or an issue with the SSK pex loader in the way it displays the particles?