help action based on change in X accelerometer

ChaserChaser Member Posts: 1,453
edited November -1 in Working with GS (Mac)
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

  • ChaserChaser Member Posts: 1,453
    And I don't mean when accel x is greater than .08 or such as when the device is tilted it may already be greater than that number. I guess in a way it's like the change in a calibrated resting position
  • ChaserChaser Member Posts: 1,453
    Why does it seem that I always have questions that hardly anybody has answers to.
  • ChaserChaser Member Posts: 1,453
    Anybody????????????
  • ChaserChaser Member Posts: 1,453
    Not a single bit of help!
  • quantumsheepquantumsheep Member Posts: 8,188
    Zoiks - that's quite horrible when a post is ignored like that. Sorry!

    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

  • StusAppsStusApps Member, PRO Posts: 1,352
    I'd like to help but don't really understand exactly what you want. If you could re-word it in the context of the game and exactly what is supposed to happen then someone will probably be able to better help.
  • ChaserChaser Member Posts: 1,453
    Thanks for at least responding. The only thing I found was calibrate accelerometer which I'm aware of. Let me reword the question.
    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
  • Rob2Rob2 Member Posts: 2,402
    if you are still having problems http://gamesalad.com/game/play/74894 .....I felt your pain

    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.
  • ChaserChaser Member Posts: 1,453
    Rob2 said:
    if you are still having problems http://gamesalad.com/game/play/74894 .....I felt your pain

    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.

    You are awesome
    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
Sign In or Register to comment.