Why is tilt not working in Construct 3?

0 favourites
  • 12 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • I am working on a game where user has to tilt the mobile to do things. But issue is that now it is simply not working (I have even asked for "request orientation") in the beginning with "on touch gesture".

    And it is definitely not a code issue as my previous code which used to work is now also not working

  • And also confirmed that i am granted permission by the browser to use orientation sensor

  • Not all mobile devices have a gyroscope.

    Most devices do have an accelerometer.

    If orientation doesn't work try acceleration.

  • Not all mobile devices have a gyroscope.

    Most devices do have an accelerometer.

    If orientation doesn't work try acceleration.

    I have same mobile since I began using construct 3. The code which was running fine last time is not working now

  • > Not all mobile devices have a gyroscope.

    > Most devices do have an accelerometer.

    > If orientation doesn't work try acceleration.

    I have same mobile since I began using construct 3. The code which was running fine last time is not working now

    Infact one of games exported earlier is still working on my mobile

  • That's all that I can speculate on given the information supplied.

  • I just checked one of my old tilt games and it still works perfectly. As newt implied, you're not giving enough info to go on.

  • I just checked one of my old tilt games and it still works perfectly. As newt implied, you're not giving enough info to go on.

    I never said that tilt feature is not working on construct 3 games (even my game exported earlier having tilt feature is working)

    I am "saying" that "now" if I again export "same" game,now tilt feature is not working.

  • I never said that tilt feature is not working on construct 3 games (even my game exported earlier having tilt feature is working)

    The title of your thread literally says "Why is tilt not working in Construct 3?" So yeah, you did say tilt is not working. :P

    I am "saying" that "now" if I again export "same" game,now tilt feature is not working.

    I know what you're "saying". I just exported my old game as a debug.apk and it installed and functioned without any problems. Tilt works fine. Please show some screenshots of events or something that can help narrow the issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try turning worker mode off. You shouldn't have to export to test.

    Remote preview should work, as long as the browser, and phone has those features.

  • More information and update:-

    1.) It was html export

    2.) Actually I currently don't have active plan so I export html and then run it locally on my mobile using web server. My game opened but except tilt feature, everything was working

    Now in order to show my html export here,I uploaded to netlify. But lol, "now" tilt feature was working

    testtilt.netlify.app

    Issue was with local web server. And for future reference,if someone is using local web server and tilt(or maybe something else too is not working) then issue is with local server

    Thanks for the replies

  • Try turning worker mode off. You shouldn't have to export to test.

    Remote preview should work, as long as the browser, and phone has those features.

    Bingo. With worker mode off,now it is working back on my local server too

    Thanks

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