Camera controll

BlackSheepTeamBlackSheepTeam Member Posts: 37
edited September 2012 in Community Tutorials
Hello guys i need help to a simple question, i create a simple game with control camera on a first actor like a super mario, so i have a screen to big, one actor in the center with control camera, now my question how to fix the controllers, on screen?

I used a self.position.x to costrain ControllerActor on scene.oringCamera.x and is working, but when the camera move my Controller Actor is not realy fixed on screen, continue to move 2/3 pixel off from origin X and the same for Y axis.

Any one have a idea to how to fix this on screen?

Thanks

Comments

  • SnarkwiseSnarkwise PRO Posts: 2
    I think you can add layers and fix the upper layer.
  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    To elaborate on what Snarkwise said, go into your game settings, layers, and create a new layer. Drag this new layer to the top of the list. Now, drag your controller actors into this new layer. Uncheck "scrollable" on the new layer. This will insure that your controller "sits" on top of the screen no matter where the camera goes.
  • BlackSheepTeamBlackSheepTeam Member Posts: 37
    edited September 2012
    @LiquidGameworks Thaks to mutch!!! now is all fixed on the screen. THX
Sign In or Register to comment.