How to make my game restart when i shake the ipod

Discussion in 'Jiggy Runtime Development' started by godogshomie, Apr 13, 2008.

  1. godogshomie

    godogshomie New Member

    Joined:
    Nov 19, 2007
    Messages:
    558
    Likes Received:
    3
    hey guys i need to know how to make it to where when i shake my iphone i can call my restart function

    i need to know how to make it do this plz help!
  2. Commander147

    Commander147 Member

    Joined:
    Oct 10, 2007
    Messages:
    78
    Likes Received:
    4
    Device:
    iPhone 4 (Black)
    use the onacelerate function in jiggy. The samples code page at jiggyapp.com has an example that ahows acelerometer data. The change in the x y and z axis. I guess just make it quit the app when the x y and z go past a certain value

Share This Page