Touch Orientation does not work

0 favourites
  • 5 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Hello,

    I am a 4-days beginer of construct3,now I desire to use the device's orientation to control my sprite move right and left.I checked some tutorials and set "the touch compare gamma orientation",then preview my game by open construct3 on my phone.But it doesn't make sence.

    Then checked the problem in our community,and set a text to print the value."gamma,beta,Alpha" still show Zero.The page followed also not working.

    sizzle-games.com/Tilt

    Device:Iphone12 mini(safari),Android 10(Micosoft Edge)

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • First, don't test games using Safari. Use any other browser on an iPhone. I don't know what the problem is, but the issue is unrelated to Alpha, Beta, Gamma.

    Second, I also started my C3 journey with a desire to build apps using Alpha, Beta, Gamma. The orientation features work great, it just takes a little time to learn how.

    To start learning to work with the orientation begin with the Infinite jumping template: editor.construct.net

    Just use the template as the base of your game until you get the feel of how it works. Then you can move on to making games from scratch.

    Third, when testing, Lock your phone into the portrait or landscape. If your game is made for landscape, lock your phone into landscape, same if the game is made for portrait. When you actually make the app, you won't need to do that, but while you are testing, using a browser, you need to lock your phone to portrait or landscape for a good test. (If your phone doesn't have that option, there are apps that will)

    Hope that helps.

  • Solved,Thank you so much!

    Probably,before set touch orientation it has to request "wake lock"and “orientation permission”...

  • morixxxd

    Yeah, keeping the phone awake is an issue when using the tilt orientation.

    My first game was something like pacman, but the player had to get a ball through a maze by tilting the phone. Sceen timeout was a Huge issue.

    I got creative. I put thumb prints on either side of the screen and made it so that ball didn't move unless the player had their thumb on at least 1 thumb print - that kept the screen active (it also created a nice pause feature).

    Can't wait to see what you're making.

    When you're done, don't forget to post it to the FaceBook group

    Screenshot

  • I am encouraged to see the game you share.Tackle diffculties,and find a good method to sovle it,I am ready:)

    The thing I did just like "doodle jump",followed a tutorial on youtube,intend to learn some basics as beginner.But in the tutorial the sprite is controled by keyboard,then I got problem when set control by touch.

    used some assets from "pixel adventure",and drew the a pixel character animation/background by myself(familliar ground as animation designer :P)

    Now I am planning test a mechanic new.Probably there will be lots of problems,then I come back here,lol.

    Yes,once I created someting,I will post it to Facebook group.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)