help action based on change in X accelerometer
Chaser
Member Posts: 1,453
im trying to perform an action based on change in accelerometer X Y Z but having trouble. want it to react only when a change has occured which is greater than or less than the current tilt values
Comments
I'm off to bed (it's 8:45am - don't ask) and I've never used the accelerometer - can't stand the thing personally, though I know some people like it.
So, I'm not much use to you really. Sorry!
QS
Edit: Have you tried looking through the uploaded games on GS? There are usually tutorials on most things - maybe there's something there that can help you?
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I want an actor to perform an action when the accelerometer changes tilt by lets say +0.03 or -0.03 however, if the device is alreDy tilted past 0.03 then must base the change based on the accelerometers current tilt values. So if x gets moved to .56 then the actor action would be performed when X hits .60 and .52 and so on for Y and Z
This is one method but there are probably far better ones as this has four conditions being checked in the main rule which is seems quite resource heavy.
Thanks so much
I owe you
I get so involved and think it needs to be extensive and there you show me this easy way out