Camera issue's when constraining

Hi guys

Been using Gamesalad for a couple of days and I must say I'm getting to grips with it rather quickly. There was around an hour of confusion but things appear to be coming together :D

I do however have an issue - the first app which I am working on will feature a falling actor with controls to move left-right and possibly slow down-speed up. I have created a scene 2000 px high to test everything, I have the falling physics and movement working fine but the camera is proving to be frustrating. From reading another thread I have set the actor to control camera and have constrained the camera origin to the y position of the actor (-200px). The actor starts at the top of the screen and I want it to move at least part way down the screen before the camera starts tracking, but by constraining the origin to the actor it just starts moving straight away. If I don't bother constraining the camera and just use the tracking borders the actor will fall as desired but camera will start tracking half way down the screen, which is too far!

Any ideas?

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Could you interpolate the camera position to the actor at the start then constrain it?

    Darren.
  • rdlew2008rdlew2008 Member, PRO Posts: 85
    On the scene there is a little button that has a mouse arrow and a camera click the camera and a box around the scene will show up then adjust that . There's a YouTube video about it by tshirt booth that shows how to use control camera attribute. Using my phone otherwise I would post a link
  • doodleswagdoodleswag Member Posts: 9
    Thanks guys

    @deepblueapps good idea, I have just approached it slightly differently but kind of the same effect, seems to have worked - created a boolean game attribute called triggercam and set a rule that when the actor collides with an invisible actor just below it, the boolean is set to true which then activates the camera origin constraining :-) just need to adjust the distances now lol

    @rdlew2008 thanks but as the tracking area is centered it means the camera doesn't move until the actor if half way across the screen, too far down!
Sign In or Register to comment.