Control Camera with Rule

architectpianistarchitectpianist Member Posts: 21
edited November -1 in Working with GS (Mac)
Merry Christmas, everybody! I wonder how many people will be on the forums on Christmas Day, at least in the US :)
So I have two scroll bars on the screen, which you can use to navigate through the scene, which is about 1200 x 640. But I also want to have the camera follow my character when the character is clicked, and the game is started. If I put the control camera behavior outside the touch rule, I can't navigate anywhere else. But if I put it inside the rule, nothing seems to happen. Why? How can I fix this?
Thanks, and happy holidays to all!

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Create a game boolean attribute (call it game.camfollow or something)

    Have a rule in the main actor that says when touch is pressed change game.camfollow to true (1)
    Then have a rule that says when game.camfollow is true control camera

    In the slide bars have a rule that says when touch is pressed change game.camfollow to false (0)
    Then wrap these camera control rules in a rule that says when game.camfollow is false
Sign In or Register to comment.