How to move a rotating actor (accelerometer+facing direction)
![severine](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hello everyone.
After reading several topics, we still didn't found the answer to our problem. We're working on a top view game. The main actor (a frog) rotates in every direction but we don't manage to make it move in every direction. And we also want her to face the direction she's moving to...
Actually, we've got a constrain attribute : self.rotation to vectorToAngle(- game.Accelerometer.X , - game.Accelerometer.Y )-90
How can we make her move too ?
If anyone has the answer, even the begining of an answer, we'd love to read it!;)
Thank you.
Severine
After reading several topics, we still didn't found the answer to our problem. We're working on a top view game. The main actor (a frog) rotates in every direction but we don't manage to make it move in every direction. And we also want her to face the direction she's moving to...
Actually, we've got a constrain attribute : self.rotation to vectorToAngle(- game.Accelerometer.X , - game.Accelerometer.Y )-90
How can we make her move too ?
If anyone has the answer, even the begining of an answer, we'd love to read it!;)
Thank you.
Severine
Comments
Later
my problem was more complicated.
I resolved it.
If anyone wants to know the solution, I will try to explain (my english is poor
I'm wanting to make a top down game using the accelerometer for movement.
The character also needs to rotate in order to match the way he is currently moving.
Any help would be greatly appreciated
Thanks