Camera Controlling

RumiRumi Member, PRO Posts: 343
edited November -1 in Working with GS (Mac)
Is there a way to keep the camera from going a certain place. Since in my game there are "invisible" walls on the path, when my character bounces off of them, the camera follows him so you can see the white wall and black of the screen. Is there a way to fix this?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Is you scene size larger the 480x320?

    If not then dont put a camera control in your actor if it is you will have to make some rules like

    When Self.Position.x is Greater than 50
    And Self.position.x is less than 430
    --Control Camera

    Something along those lines should work. you will have to play with the numbers But that should get you on your way with it.

    ___________________________________________________________________________________
    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!! Now only $20
    AppSolute Entertainment on Facebook
  • RumiRumi Member, PRO Posts: 343
    The thing is with my game is that you are continually falling. So the screen is long. There is a point where you have to flip your iPhone to portrait. I tried rotating the camera and all, but it didn't work. So I faked the rotation by making my game wider and adding a path that goes to the right. But when my character reached there and bounced off the "invisible" walls on the side of the screen the camera followed because of the tracking area. Normally, i had set the tracking area perfectly on the normal part of the level so it wouldn't happen. I tried changing the tracking area when you have to flip the iPhone, but it didn't work. So I need the camera to stay level, only moving (not statically) to the right with no up or down motion. Though I thank you for talking the time out to answer to my post.
  • dagsendagsen Member, PRO Posts: 27
    I have also a problem With Control camera.
    I can not get 2 (or more) actors to follow the camera,
    but i can with one.
    what should I do? :D
    please hælp me :D :D
Sign In or Register to comment.