Grab it from here : http://code.google.com/p/scene-manager/downloads/list
SceneManager is a stable alternative developed by myself to use as an alternative to the Director Class.
SceneManager V1.1 brings the following changes :
1) Improved code. (Some things I missed, various improvements)
2) Added "fromRight", "fromLeft', "fromTop", "fromBottom" transitions. Which are the equivalent to directors "overFromRight", "overFromLeft", "overFromTop" and "overFromBottom" effects.
Please bear in mind this is beta code and may possibly contain issues. Testing confirmed no memory leaks as you can see from the included sample. If you have any issues with the effects or anything else, please let me know.
Currently supported effects are :
fade", "zoomOutIn", "zoomOutInFade", "zoomInOut", "zoomInOutFade", "flip", "flipFadeOutIn", "zoomOutInRotate", "zoomOutInFadeRotate", "zoomInOutRotate", "zoomInOutFadeRotate", "fromRight", "fromLeft", "fromTop", "fromBottom"
(You can view all of these from scene.lua)
Usage :
In main.lua
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | --Require Scene Manager Module local scene = require("scene") -- Create a main group local mainGroup = display.newGroup() -- Main function local function main() -- Add the group from scene class mainGroup:insert(scene.mainView) -- Change to initial scene without effects scene:changeScene("mainMenu") return true end --Run Main Function main() |
Awesome Danny. Thanks for including the fromLeft/Right transitions as requested. This will make it much easier for someone to switch completely over to scenemanager.
Do you still clean the groups in the same way?
@Lewis.Elliott.92 Yep the same as in the first release