problem with camera control

nickbuakaewnickbuakaew Member Posts: 77
edited April 2012 in Working with GS (Mac)
hey guy

i want my actor to stay back not in the center of the scene. i manage to do so with created camera control and i put it hidden in the scene. the only problem with that is when the actor moved, is a bit shaky.

i use accelerate and constrain attribute to make actor move at the same speed. please anyone
thank you

Best Answers

  • PhoticsPhotics Posts: 4,172
    edited April 2012 Accepted Answer
    Are you using a separate/hidden actor to control the camera?

    That extra actor isn't necessary. Instead, the camera's position can be changed/constrained by accessing the camera attribute directly.

    Double-Click the hero actor on the scene...
    Click the lock icon...
    Now you can access the "Current Scene" attributes, where the camera related attributes can be found.

    That might give better performance.

    Also, if you still want to use a hidden actor, physics should be turned off. Even though it's invisible, it could still be colliding with stuff, which might be the cause of the shaky camera movement.
  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    Accepted Answer
    Yeah like Photics said unlock the actor so you can access the scene attributes. And constrain the camera.origin.x to self.position.x-whatever you want

    That should get rid of the shake
Sign In or Register to comment.