Accelerometer calibrate

stanimationstanimation Member Posts: 406
edited November -1 in Working with GS (Mac)
Does anyone have an idea how to calibrate accelerometer settings. For example, if you are holding the device at an angle and would like to "calibrate" the settings to be the same as if the device were laying flat or 0,0,0. The issue is it would be nice to be able to play a game with the device in a position other than flat when using the accelerometer.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    http://gamesalad.com/game/play/30319

    this is a tutorial from mulcahy's z is for zombie (great game bty). It works great.
  • JamesBoucherJamesBoucher Member Posts: 433
    When I try the link to Mulcahy tutorial it crashes my safari.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Try emptying the cache
  • JamesBoucherJamesBoucher Member Posts: 433
    Emptying the cashe did not help. Any other suggestions.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I'm assuming you have the latest version of Safari? What version of OS X do you have? Maybe try uninstalling / reinstalling the safari plugin?
  • JamesBoucherJamesBoucher Member Posts: 433
    Mac OS 10.5.8. I can play any other GS game with no problem. This is the only thing that kills my Safari. My Safari is Version 4.0.4 (5531.21.10).
  • JamesBoucherJamesBoucher Member Posts: 433
    I reinstalled the GS plugin and still no go.
  • JamesBoucherJamesBoucher Member Posts: 433
    I reinstalled the GS plugin and still no go.
  • JamesBoucherJamesBoucher Member Posts: 433
    This is the error I get:

    The application Safari quit unexpectedly. The problem may have been caused by the GameSalad plug-in.

    I then have to start Safari and quit it once before I can get connect to the internet.
  • ZillaZilla Member Posts: 157
    I have the ecaxtly the same errors as JamesBoucher
    :(
  • JamesBoucherJamesBoucher Member Posts: 433
    Anyone at GS have any idea why?
  • JamesBoucherJamesBoucher Member Posts: 433
    I'm going to put this game on hold until I can find an answer.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Here's what I have done. On my start screen I have a little disclaimer that says hold device at desired angle and press start.

    I create two real game attributes (calibX and calibY)

    In the start button actor I have two rules (in addition to the change scene rule of course) that says when touched change calibX to game.accelerometer.X and change calibY to game.accelerometer.Y

    Then in my player that I am controling with the accelerometer I do just like the wiki says but instead of < or > 0 I use calibX and calibY

    Make sense?
  • JamesBoucherJamesBoucher Member Posts: 433
    Scitunes, I understand how to do the calibration. I wanted to see how it was being presented. If I should display the numeric values as one calibrates, or show some type of graphic representation. Maybe both?

    Also it bugs me when I get an error that I should not get. Thanks for the response. Also thanks for the accelerometer idea on my other issue.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I'll try and reupload a copy of the tutorial when I get home, I have no idea why it's failing for a few people. very strange.

    Here's a direct link to the project file:
    http://gamesalad.assets.s3.amazonaws.com/00000125-712c-987c-421d-723a3d737c10.game

    right click on it and download and rename it as .zip, see if that opens for you.
  • stanimationstanimation Member Posts: 406
    Thanks Scitunes. I'll try it when I get a chance. Darned work gets in the way of the fun stuff.
Sign In or Register to comment.