How to move a rotating actor (accelerometer+facing direction)

severineseverine Member Posts: 3
edited November -1 in Working with GS (Mac)
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

Comments

  • BrynjeBamsenBrynjeBamsen Member Posts: 188


    Later :)
  • severineseverine Member Posts: 3
    thanks :)
    my problem was more complicated.
    I resolved it.
    If anyone wants to know the solution, I will try to explain (my english is poor :/)
  • cyclops-gamescyclops-games Member Posts: 19
    severine said:
    thanks :)
    my problem was more complicated.
    I resolved it.
    If anyone wants to know the solution, I will try to explain (my english is poor :/)

    Hi, I would be really interested to know how to do this!
    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
Sign In or Register to comment.