Help with Camera position please

guitarnoobguitarnoob Member Posts: 2
edited November -1 in Working with GS (Mac)
Hey guys,

Just wanted to start off by saying how bad ass Gamesalad is!! It has helped me start to achieve what I've wanted to do since i was just a wee little boy.

Alright, now my issue:

i have an actor who has the control camera behavior on him but the camera only follows him when he falls to the middle of the screen (i put tracking to 0x0). my game is in portrait and i would like him to stay near the top of the of the screen and have a good distance of space in front of him (he's falling from the sky)

Any help with my problem would be greatly appreciated :)
I have tried searching the forums and i couldn't really find an answer to my problem.

Thanks in advance

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    You'll need a game attribute (integer or real) called cameraY. Constrain this to the actor's Y position with an offset (-100 or something) then put the control camera behavior in a second invisible actor. Constrain this actor's y position to game.cameraY
  • guitarnoobguitarnoob Member Posts: 2
    Thanks so much scitunes!!! worked like a charm!!!! you have saved me days of aggravation! :P
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    glad to help!
Sign In or Register to comment.