I can not get 2 (or more) actors to follow the camera

dagsendagsen Member, PRO Posts: 27
edited November -1 in Working with GS (Mac)
I have a problem With camera Control.
I can not get 2 (or more) actors to follow the camera,
but i can with one.
what should I do? :D
please hælp me :D :D

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Not really sure what you're trying to accomplish here. Why would you want the camera to follow two actors? Please explain more about what it is that you want your game to do.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    If you want the camera to follow different actors at different times you will need to use a game attribute. If it is only two then use boolean. If it is more than two use an integer. So lets say you want the camera to follow the one you have clicked on.

    create game attribute : CameraControl

    Rule in actor 1: When touched is pressed
    -----change game.CameraControl to 1

    Rule in actor 1 : When game.CameraControl = 1
    -----control camera

    Rule in actor 2: When touched is pressed
    -----change game.CameraControl to 0

    Rule in actor 1 : When game.CameraControl = 0
    -----control camera
  • dagsendagsen Member, PRO Posts: 27
    what I want is to let the camera follow a ball and here fore there must be a button in the corner
    do you understand it now?? :D :D :D
  • dagsendagsen Member, PRO Posts: 27
    in the corner of the camera of course
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    What?

    What are you trying to do ?

    If you want the camera to follow a ball, what are the other actors you want to follow the camera?
  • m456arcusm456arcus Member Posts: 189
    Put the button on it's own unscrollable layer.
  • dagsendagsen Member, PRO Posts: 27
    I intent to create a large scene where a ball can roll around and the camera will follow it - furthermore I need a button to stay in the button the camera.

    My problem is that I cannot get the button to stay in the bottom of the camera, because it just remains on the scene and are not following the camera.

    Does this make sense?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yes you shouldve said that from the beginign haha

    make a new layer and uncheck scrollable

    then put the button on that layer

    cheers
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Put the button in it's own layer and uncheck scrollable.
  • dagsendagsen Member, PRO Posts: 27
    ha ha thanks dudes but
    how do you put an actor into a layer? :D
    That is my problem !! :D :D
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408


    While your at it,watch all videos by gamesaladcookbook
  • dagsendagsen Member, PRO Posts: 27
    thank you so much :D
Sign In or Register to comment.