Jump to content

Orientation Bug!


angelkom
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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?!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...