It looks like you're new here. If you want to get involved, click one of these buttons!
-- defines the scenemanager's scenes scenemanager = SceneManager.new({ ["mainmenu"] = mainmenu, ["gamemode"] = gamemode, ["game"] = game, ["contact"] = contact, ["options"] = options, }) transitions = { SceneManager.fade, SceneManager.crossFade, SceneManager.flip, SceneManager.flipWithFade, SceneManager.flipWithShade, SceneManager.moveFromLeft, SceneManager.moveFromRight, SceneManager.moveFromBottom, SceneManager.moveFromTop, SceneManager.moveFromLeftWithFade, SceneManager.moveFromRightWithFade, SceneManager.moveFromBottomWithFade, SceneManager.moveFromTopWithFade, SceneManager.overFromLeft, SceneManager.overFromRight, SceneManager.overFromBottom, SceneManager.overFromTop, SceneManager.overFromLeftWithFade, SceneManager.overFromRightWithFade, SceneManager.overFromBottomWithFade, SceneManager.overFromTopWithFade, } -- get a random transition from the transition table transition = transitions[math.random(#transitions)] CAUSES CRASHING SOMETIMES -- adds the manager to the stage stage:addChild(scenemanager) -- go to the main menu scene scenemanager:changeScene("mainmenu", 1, transition, easing.outBack) |
Comments
in this case find out that value by
transition = transitions[1] use all the numbers upto #transitions
if you think you are using old version you can get latest version from https://github.com/gideros/Scene-Manager
BTW how do I post a comment and have the code show up properly?
Web: http://bromancelabs.com
http://giderosmobile.com/forum/discussion/742/problem-with-shape-position#Item_2
Web: http://bromancelabs.com
http://artleeapps.com/
Bubble Adventure - Colors
http://members.giderosmobile.com/knowledgebase.php?action=displayarticle&id=41
this one is found guilty
----------> SceneManager.crossFade it should be SceneManager.crossfade
@ar2rsaween I actually got that from the main.lua that's in the sceneManager code on Github. There it shows as "crossFade". In any case can I be forgiven for not using the KB?!!!!
Web: http://bromancelabs.com