playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Ask about Landscape Left&Right[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Ask about Landscape Left&Right[SOLVED] (Read 3023 times)
naktim0819
Playmaker Newbie
Posts: 44
Ask about Landscape Left&Right[SOLVED]
«
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?
«
Last Edit: April 17, 2013, 09:32:03 AM by naktim0819
»
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Ask about Landscape Left&Right
«
Reply #1 on:
April 17, 2013, 02:09:00 AM »
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
Logged
naktim0819
Playmaker Newbie
Posts: 44
Re: Ask about Landscape Left&Right
«
Reply #2 on:
April 17, 2013, 04:39:19 AM »
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 .
//www.youtube.com/watch?v=j9ZjPgCfZTk
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.
Logged
PolyMad
Hero Member
Posts: 545
Re: Ask about Landscape Left&Right
«
Reply #3 on:
April 17, 2013, 08:16:35 AM »
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.
Logged
naktim0819
Playmaker Newbie
Posts: 44
Re: Ask about Landscape Left&Right
«
Reply #4 on:
April 17, 2013, 08:57:47 AM »
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
Logged
PolyMad
Hero Member
Posts: 545
Re: Ask about Landscape Left&Right
«
Reply #5 on:
April 17, 2013, 09:07:11 AM »
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.
Logged
naktim0819
Playmaker Newbie
Posts: 44
Re: Ask about Landscape Left&Right
«
Reply #6 on:
April 17, 2013, 09:30:00 AM »
thanks megmaltese
It's Successful
Learning! Thanks you!
Logged
PolyMad
Hero Member
Posts: 545
Re: Ask about Landscape Left&Right[SOLVED]
«
Reply #7 on:
April 17, 2013, 10:13:20 AM »
Cool, learing is fun as much as coding smoothly
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Ask about Landscape Left&Right[SOLVED]