Hey guys
i am making a plane game for mobile
can anyone tell me how to use axelerrometers for control ( tilt right and left up and down )
Use the Touch object to access the accelerometer. You'll have to experiment to get it right, but you could try something like this using 'Compare two values':
Touch.Gamma < -5: simulate control 'left'
Touch.Gamma > 5: simulate control 'right'
Develop games in your browser. Powerful, performant & highly capable.
and giroscope???
I guess Touch.Alpha is used for giroscope
is there a example capx for this ?
guys how to test tilts?
I think there is a way to test it in Intel XDK emulator.
For me, the accelerometer specifically Touch.Alpha works fine with Cocoonjs on an iPad 2 but it doesn't work properly as in it glitches when converted to an .apk file built from cordova in intel XDK and tested on a Samsung Galaxy tablet and Samsung S4. Does anyone know why this happens?
apex General, It would be appreciated if you started a new thread, rather than necro-ing another one
how about using rex's tilt to arrow key plugin?