I have used compare orientation feature of touch object. I have used gamma orientation.But when i check my game in cocoonJS that orientations does not work. <img src="smileys/smiley24.gif" border="0" align="middle" /> What is the problem?CocoonJS support the orientation??
Develop games in your browser. Powerful, performant & highly capable.
Your game is the problem , sir !
Works well , re-check the game yourself because we can't help you here ...
Or maybe it is your phone , not every phone supports the orientation ...
well,I am using this condition.
if gamma orientation < -8 make left tilt
and if gamma orientation > 8 make right tilt...
Is this wrong ?
I am checking in Iphone 3GS.
Put Alpha, beta and gamma into a textbox and see what it tells you.
I'm having an issue whereby an android tablet changes the gamma and an android phone changes the beta, so really no idea what to do to sort it.
Have reported it with Ludei as smells like a bug.