ivan123 Posted November 10, 2014 Share Posted November 10, 2014 Hi, when I try to run to run the code below i am receving this error "Uncaught RangeError: Maximum call stack size exceeded" game.module( 'game.main' ) .body(function() { game.SceneBattle = game.Scene.extend({ init: function() { } }); game.start(game.SceneBattle);}); This does not seem to happen in older versions of Panda.Any ideas? Thanks in advance Quote Link to comment Share on other sites More sharing options...
enpu Posted November 10, 2014 Share Posted November 10, 2014 Your code is a bit outdated, try this:game.module( 'game.main').body(function() {game.createScene('Battle', { init: function() { }});});Then change your start scene in config.js file:pandaConfig = { system: { startScene: 'Battle' }}; Quote Link to comment Share on other sites More sharing options...
ivan123 Posted November 11, 2014 Author Share Posted November 11, 2014 Works great. Thanks a lot 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.