Problem with accelerometer

patapplepatapple Member Posts: 873
edited May 2012 in Working with GS (Mac)
Hi,

I'm creating a simple game with the accelerometer but i have a big problem. When the level begin, the main character go automatically to a direction. I tried to put it on a table and it was the same result. There is a way to calibrate the accelerometer as soon as the level begin?
here is short video to show you what I mean:

Best Answer

Answers

  • patapplepatapple Member Posts: 873
    Thanks! I created the calibrate attribute but i have a little question: on my player actor i have the rule.
    -when "accelerometer.X" is > -0.1 --> accelerate ...
    but now the rule should be
    -when "accelerometer.X" is > -0.1+calibrate.X --> accelerate

    Right??? ;))
  • patapplepatapple Member Posts: 873
    Any idea? :)
  • patapplepatapple Member Posts: 873
    edited June 2012
    @jonmulcahy I didn't find your template :D
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Thanks! I created the calibrate attribute but i have a little question: on my player actor i have the rule.
    -when "accelerometer.X" is > -0.1 --> accelerate ...
    but now the rule should be
    -when "accelerometer.X" is > -0.1+calibrate.X --> accelerate

    Right??? ;))
    No
    You replace the .1 with the calibrate value

    I don't have the template anymore, it was from 2009
  • patapplepatapple Member Posts: 873
    ok now i try
  • patapplepatapple Member Posts: 873
    no, it doesn't work. there is always the problem on the first video i posted here. these are my rules:

    image
  • patapplepatapple Member Posts: 873
    ;(
Sign In or Register to comment.