camera screen tracking help

jigglybeanjigglybean Member Posts: 1,584
edited December 2014 in Working with GS (Mac)

Hi all

Ive spent ages looking at tutorials trying to get this to work but its not quite right.

Found a video. This is what I would like to do. The actual file, I can't open in my GS mac version any more

Like Balls? Then click here! We've 100 coming soon

Best Answers

  • ashtmjashtmj Posts: 405
    Accepted Answer

    you need to make 2 real global attributes "player X" and "Player Y" and one Boolean called "player left/right"

    in your player actor

    constrain game.player X to self. position X
    constrain game.player Y to self. position Y

    then a rule
    rule conditions if self. motion X is greater then 0

    change game.player left/right to true

    in the otherwise

    change game.player left/right to false

    then make another actor called camera

    add a control camera behavior

    then a rule

    rule conditions if game.player left/right is true

    constrain self.position X to game.player X + 200 (or how ever far ahead of the player you want the cam)

    in the otherwise

    constrain self.position X to game.player X - 200 (or how ever far behind the player you want the cam)

    constrain self.position Y to game.player Y

    hope that helps

  • colandercolander Posts: 1,610
    Accepted Answer

    Put a Camera Control behaviour in your Hero actor and set the width of your camera to 0.

Answers

  • jigglybeanjigglybean Member Posts: 1,584
    edited December 2014

    empty

    Like Balls? Then click here! We've 100 coming soon

  • jigglybeanjigglybean Member Posts: 1,584

    Hey thanks guys

    I did mange to figure out a crude way of doing it but will try placing these rules within the actor (didn't think of that lol)

    Like Balls? Then click here! We've 100 coming soon

Sign In or Register to comment.