Move by accelerometer

SkyMapleSkyMaple Member Posts: 817
edited November -1 in Working with GS (Mac)
How can I set up an actor to move around by the accelerometer (up,down,left,right)? It would be setup for iphone landscape, being perpendicular to the ground.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    landscape would be as so:

    a rule when attribute device accelerometer x >0.5 move up

    a rule when attribute device acceleormeter x < -0.5 move down

    a rule when attribute device accelerotmeter y is > 0.5 move left

    and a rule when attribute device acceleormetr y < -0.5 move right
  • SkyMapleSkyMaple Member Posts: 817
    thanks!
Sign In or Register to comment.