Tilt controls not working.

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

    Check out the events below, did I do something wrong? I exported it(with intelxdk), installed it on my device(a Philips S398) and I rotated and tiled the device every each way, no matter what I did there was no movement...

    Thank you.

  • I think gamma on touch is tilt left/right?

  • Sure, I can try that one too, but even with alpha shouldn't there have been some movement some way?

  • I think Alpha might detect the rotation of the device from a spin? Like when the device is moving between portrait/landscape. Just a logical guess here. Compass direction implies when the device is rotated flat but not tilted. I think beta and gamma detect the tilt direction.

  • Well, I've now tried all of em alpha, beta and gamma, I once again turned the phone every which way even jiggled it a bit, nothing...

    Do I need to check "Uses geolocation" when exporting it from C2, or what's going on guys?

  • jeffige didn't you get tilt to work?

  • Add a text object and debug it.

    Text set text to touch.alphaorientation or whatever it is.

  • VIKINGS

    First, you have Mobile and Desktop controls together. Won't work. At least not for me. You need to separate your controls. Put Mobile controls in its own group and Desktop controls in its own group. Then activate/deactivate the group that needs the controls.

    i.e: If on Desktop > System set Group Desktop Activated - and - System set Group Mobile Deactivated. And vice versa.

    Alpha is for tilt on a flat plane.

    Beta is for tilt on the Y axis.

    Gamma is for tilt on the X axis.

    Second, and this is a doooooope! moment, at least it was for me, you need to check that your device has tilt sensors.

    Install THIS on your device and run it. If your device has the sensors it should say 'Accelerometer' and the values will move if it does.

    Also, try and decrease the Beta/Gamma values. decrease to around 2. This will allow to check the tilt for very fine movements.

    Also, you should change the Greater and Less Than TO Greater or Equal and Less Than or Equal.

    Other than that, your events/actions look right to me.

    Let me know.

  • Well, I tried all your suggestions guys and still nothing... ((((((((((

    jeffige the keyboard events where already disabled and I don't think it matters if they are in the same group, but just to be safe I deleted them all together for today's tests. I did install that app your recommended and yes the values under "Accelerometer" do change there when I move/rotate my phone. I added equal to greater then/less then and tested with the values at 2 and then again at 4(4 because that seemed to be the most common and easiest to achieve value in that app).

    newt I added a textbox and created an event every tick set text to Touch.Gamma, and indeed it stays at 0. I only tried the text with gamma but I doubt it would change for the other ones, besides like I said the values for all the axis do work under "Accelerometer" in that app.

    Any other suggestions guys? For example here's a pic of the plugins when I export with intelxdk, does everything look ok there?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, I tried all your suggestions guys and still nothing... ((((((((((

    jeffige the keyboard events where already disabled and I don't think it matters if they are in the same group, but just to be safe I deleted them all together for today's tests. I did install that app your recommended and yes the values under "Accelerometer" do change there when I move/rotate my phone. I added equal to greater then/less then and tested with the values at 2 and then again at 4(4 because that seemed to be the most common and easiest to achieve value in that app).

    newt I added a textbox and created an event every tick set text to Touch.Gamma, and indeed it stays at 0. I only tried the text with gamma but I doubt it would change for the other ones, besides like I said the values for all the axis do work under "Accelerometer" in that app.

    Any other suggestions guys? For example here's a pic of the plugins when I export with intelxdk, does everything look ok there?

    I'll try and look at your stuff probably tomorrow. Really trying to hit a Sunday launch with my own at the time.

    Out of curiosity, have you tried seeing if it works on preview LAN?

    If it works there it should work after build. No plugins should be messing with it.

  • Ok jeffige , no rush.

    I have no idea what you mean by "preview lan", are u talking about using the "simulate" or "test' tabs in intelxdk?

  • This is an interesting topic. I have tried this and it´s not working on me either. Tested it on intel xdk test server. I also removed the desktop controls. I also tested this software and accelometer shows that my mobile does have these controls.

    This was the game I tried. You can download and try it freely. I don´t know why it´s not working. btw it´s not my game so this is not a weird ad <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    http://ericterpstra.com/2012/11/constru ... t-of-doom/

    Tried this too, but not working: http://www.sizzle-games.com/Tilt/

    Tried it in web (mobile) and with android app preview (intel xdk test) and not working.

    edit: Now tried the tilt app also on full android build. Not working.

  • Ok.... Ashley I really think it's time you got involved here, can you help us out pretty please? Do we submit a bug report, and how do we even do that when it seems to not work under any scenario(to my knowledge bug reports need to be specific)?

    This is one of the cornerstones of the new game I'm developing, I really need to get this to work in the end...

  • I looked up the specs of the Philips S398 and it doesn't say it has a gyroscope.

    So, of course, if the hardware sensor is missing it won't work!

  • If there was ever a time for a Patrick Stewart facepalm gif...

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