Need Help With Accelerometer!
IsaacPhoenix
Member, PRO Posts: 15
So I'm working on this project that has two actors. When one actor appears you have to rotate the phone till its at the bottom of the screen, and if the other actor appears you need to rotate the screen till its at the top. I set it up with a rule for three attributes. When the actor, location, and x or y accelerometer (always set to 1 or -1) match up it goes repeats the action. The problem seems more like a glitch than anything. I've write down all the combinations and was testing to make sure it all worked, but then randomly something that shouldn't have happen, like the actor being on the left, made it to the next stage. Does anyone know why something like this would've happened? Does it sound like I am doing this right?
Comments
There is not much on the forums about the accelerometer. I am doing a game using it controlling gravity. The accelerometer quantifies the velocity and direction of rotation into one number value. This is why it's the ACCElerometer. It's tricky to use as what we really need access to is the gyroscope as that measures rotation of the device only.
They this thread there is a template there http://forums.gamesalad.com/discussion/53471/accelerometer-movement-done-right/p1
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I've got it set to where the value has to be at least .85 so it's more of less just using the gyroscope. The issue was some items seemed to be activating when they weren't supposed to but it was dumb since once the condition activated, it didn't turn off when it needed to. I hope that is the problem but we will see.