angelkom Posted July 15, 2014 Share Posted July 15, 2014 Hi all I have a problem with setting the orientation of the game, I want to lock it to portrait only, but, when I set game.System.orientaion = game.System.PORTRAIT, I still can rotate and when I rotate to landscape the game is still there but when I return to portrait I get Please rotate the screen, then I tried with only strings like "portrait" or "landscape" and I tried setting them in the config.js file and in the main game file, but this time is I always get please rotate the device no matter I am portrait or landscape, please tell me how to fix this , I want to lock the orientation to only portrait Thanks. Quote Link to comment Share on other sites More sharing options...
enpu Posted July 15, 2014 Share Posted July 15, 2014 Are you using latest Panda version? What device are you using? Quote Link to comment Share on other sites More sharing options...
angelkom Posted July 15, 2014 Author Share Posted July 15, 2014 Yes I use the latest, I have android 4.4.4 Quote Link to comment Share on other sites More sharing options...
angelkom Posted July 15, 2014 Author Share Posted July 15, 2014 Yes I use the latest, I have android 4.4.4 Quote Link to comment Share on other sites More sharing options...
Alfredo Posted July 15, 2014 Share Posted July 15, 2014 I don't know if it's the same problem but I cannot find a wait to disable the "rotation message" on the mobile, I mean I want my project to work in portrait mode. Is that possible? Quote Link to comment Share on other sites More sharing options...
angelkom Posted July 15, 2014 Author Share Posted July 15, 2014 I've just trying redownloading the engine and the problem is solved, but now I get an error Uncaught TypeError: Cannot read property 'random' of undefined and on that line I have method to get random number var round = Math.round(game.Math.random(0, 6));, is the math random number changed?! Quote Link to comment Share on other sites More sharing options...
angelkom Posted July 15, 2014 Author Share Posted July 15, 2014 Solved that too, I found a new method in the core.js 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.