Control Camera with Rule
architectpianist
Member Posts: 21
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!
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
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