Phempt Posted October 13, 2014 Share Posted October 13, 2014 is there a way to use an animation during a scene transition. I want to use the slide effect when I'll change my scene Menù with the Game one. Thank you Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted October 13, 2014 Share Posted October 13, 2014 Hi @Phempt I use the fader plugin, but that only does fade in/out. Someone, please correct me if I'm wrong, but I think the only way to do what you want, is to create your levels in the same scene (on different layers) then slide one layer away. In your case, create the menu on a separate layer and slide it away to play your game. Hope this helps Quote Link to comment Share on other sites More sharing options...
Phempt Posted October 13, 2014 Author Share Posted October 13, 2014 Thank you, I'll try this way in my next videogame, for the current project I can try with the fader plugin. Is it difficult to use? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted October 14, 2014 Share Posted October 14, 2014 It's really easy All you have to do is to copy fader.js into scr/plugins and then ... var fader = new game.Fader({color: 0xffffff, speed: 1000});fader.fadeIn(); or fader.fadeOut(); and to switch to a different level, once the fadeOut is complete ... fader.fadeOut(function() { game.system.setScene('myLevel');}); Quote Link to comment Share on other sites More sharing options...
Phempt Posted October 15, 2014 Author Share Posted October 15, 2014 That's a really good trick! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.