The camera follows the player, position and rotation

roweigandroweigand Member Posts: 1
edited November -1 in Working with GS (Mac)
Hello everyone.
I wish the camera follow the player, who changes direction at any time. I did it. But my difficulty is that the buttons do not follow and rotate with the camera. The problem is that when the camera turns, it does not maintain its position attributes. Unlike maintain its point of origin (scene.Camera.Origin.X / Origin.Y) on the left and below, the source point moves based on a central point.
Could anyone help me with this? How to make the camera rotate, change position and zoom, and make that menus, scores and buttons (and touch area) will not move on the screen.
Thanks

Comments

  • juzcookjuzcook Member Posts: 259
    Just wondering, when you say the game turns, does it rotate to landscape/portrait, or rotate freely around an axis? I'm doing something similar-ish where you have to rotate your device around, and to make the buttons move with the camera properly I just interpolate the position to the other side. Not sure if that would help in your situation but just throwing it out there
Sign In or Register to comment.