GameSalad

Problem with camera tracking area

talavital2010%40gmail.comtalavital2010@gmail.com Posts: 9Member
edited April 15 in Working with GS (PC)

i have a platformer game that moves only on the x axis.. i set the camera to follow the character and it works fine..
the problem is that i can only change the size of the cameras tracking area but i cannot change its location.. the problem is that the camera starts to follow the character only when it reaches the middle of the scene.. i want the camera to follow the character from the location it starts which is 0,0

thanks

Comments

  • pHghostpHghost London, UKPosts: 1,904Member

    The camera has two settings, size and tracking area. Play with the size and location of the tracking area on the X axis to get the effect you are looking for.

  • SocksSocks London, UK.Posts: 12,698Member, PRO

    You can unlock your character in the scene and give it this behaviour:

    Constrain Scene.Origin.Camera.X to self.Position.X

  • talavital2010%40gmail.comtalavital2010@gmail.com Posts: 9Member
    edited April 15

    @pHghost said:
    The camera has two settings, size and tracking area. Play with the size and location of the tracking area on the X axis to get the effect you are looking for.

    how can i change the the tracking location? i cant see this option anywhere.. i can only change the size of the tracking area and rotate it

  • talavital2010%40gmail.comtalavital2010@gmail.com Posts: 9Member
    edited April 15

    @Socks said:
    You can unlock your character in the scene and give it this behaviour:

    Constrain Scene.Origin.Camera.X to self.Position.X

    i cannot copy and past what you have wrote in the constrain text field.. i can only choose from the list it gives me and there is no option to choose scene there.. any idea?

    meaning this
    http://imgur.com/a/YyNBL

    i cant edit this text field i can just choose from a list that includeds
    Attribute>
    Game
    Devices
    Characters

    cannot see scene here and also i cannot copy paste into the field

  • SocksSocks London, UK.Posts: 12,698Member, PRO
    edited April 15

    @Socks said:
    You can unlock your character in the scene and give it this behaviour:

    Constrain Scene.Origin.Camera.X to self.Position.X

Sign In or Register to comment.