Using accelerometer for left/right movement on falling object

GrubGamesGrubGames Member Posts: 77
edited November -1 in Working with GS (Mac)
Hey all,

So I am having some trouble using the accelerometer for left and right movement on a falling object. Basically I have a falling object that I want to navigate with left right tilt to get actor down to a goal location.

I simply created rules for left and right movement and it is not doing what I want.

Any ideas as to what I need to do?

Thanks

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    accelerometer controls for portrait would be like this:

    When attribute device accelerometer x >0.5 move right

    When attribute device accelerometer x < -0.5 move left

    then just have your accelerate down for gravity.

    cheers
Sign In or Register to comment.