Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: naktim0819 on April 17, 2013, 02:01:24 AM
-
Ask a question about Landscape Left&Right
this is my question
I want to ask
why when the beginning of the program
in this object first time to need this device landscape function
it's need to rotate my device a "big angle" then he can start detect my landscape.
If I have not rotate a "big angle" maybe I just rotate angle 15 or angle 30
the landscape program will not start
but when start device a "big angle" ,after he can detect subtle angle value.
Can it don't need to that rotate big angle, will be able to directly run ?
Is my Action Error?
-
Hi,
I am not sure what you are trying to achieve here, if you simply listen to the orientation then you are good to go, and the acceleration values are independant from the orientation. they are linked somehow because the device will accelerate as the user go from one orientation and the other but the values are most likely completly stable no matter what is the current orientation.
What do you expect doing with the angle you find?
bye,
Jean
-
Hi jean
I record a video
When start just little rotate my phone it's does not detect the rotate
until I rotate a big angle then it can move .
How can I in the start to detect delicate angle of rotation to move my stuff from the beginning
Sorry around a bit noisy can turn off the sound of the film.
-
This happens because of course the landscape/portrait switch only happens when the user goes over a threshold.
Otherwise can you imagine the device changing orientation at a minimal rotation?
Coming to the solution: you will have to register slighter changes to the device with the DEVICE ROLL action, and set the landscape/portrait mode by yourself after the threshold you decide is exceeded.
-
thanks ur reply megmaltese
How can I register slighter changes to the device with the DEVICE ROLL action
with playmaker?
I just found a action is Get Device Roll
-
Yeh, get the value of the device roll and put it in a variable, then make a compare of that variable: if larger than x degrees, then go to another state, if smaller than x degrees then go to another state, etc.
-
thanks megmaltese
It's Successful
Learning! Thanks you!
-
Cool, learing is fun as much as coding smoothly ;D