Camera doesnt follow my actor!!

gameNoobgameNoob Member Posts: 7
edited November -1 in Working with GS (Mac)
hey guys.

I just begun with my first little project.

My main character is a ball that rolls forward, but the camera does not follow.

'control camera' is within the rule and 'on', background is 'scrollable' but nothing happens with the camera.

Anyone an idea, what is wrong here??

Thanks for any suggestions!

Comments

  • PhoticsPhotics Member Posts: 4,172
    Why is the control camera behavior in a rule?

    I'm thinking that's where the problem might be. If the rule's condition is not active, then the control camera behaviors might not be running.
  • DrGlickertDrGlickert Member Posts: 1,135
    How far are you rolling? If you're rolling well past the far right margin (480 in landscape mode) you'll need to watch the tutorial on GameSalad CookBook to get the camera to follow it. Does it follow it at all?
  • gameNoobgameNoob Member Posts: 7
    @Photics: i added the camera control behavior to the ball's rule at the right window, as i did it for all behaviors bevor.

    and the rule is switched on! what do you exactly mean with 'if rule's condition is not active'?

    @DrGlickert: No it doesnt follow at all. The ball just rolls out of the screen, but the camera stands still...
  • RedlerTechRedlerTech Member Posts: 1,583
    Not active - meaning if the action is not currently happening to make the rule correct :)

    EX: In a touch is pressed rule, if the touch is not being pressed then the rule is inactive

    Matt

    (ALSO - If the rule is not important do not use it!)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    gameNoob said:
    @Photics: i added the camera control behavior to the ball's rule at the right window, as i did it for all behaviors bevor.

    and the rule is switched on! what do you exactly mean with 'if rule's condition is not active'?

    The window on the right of the actor editor is not a rule. that is where you place rules and behaviors. If you place the behavior freely in that area it should always follow the actor as long as its the only actor on the screen with that behavior. if you placed the behavior inside and actual rule. then the rule's conditions like touch is pressed or attribute = must be met before the camera will follow the actor.

    So have you placed the behavior in a rule itself or just placed freely with no rule around it?
  • gameNoobgameNoob Member Posts: 7
    sorry guys, im from munich germany, and so .. my english is not the best ever;)

    @tenrdrmer: i know, that the window on the right is not a rule;)
    and i tried both: placed the behavior freely - doesnt work (yes its the only actor on screen with that behavior); placed it also inside the rule; settings: when space is down etc. - pressed space - nothing.

    I almost think the settings with the rules etc. are not the issue,
    could it be that some of my scene or camera-settings are wrong?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    It needs to be freely placed in the actor and it will control the camera. If you want it to control it sooner you need to shrink the Tracking Area to 0x0 and it will take control as soon as its in the middle of the screen.
  • gameNoobgameNoob Member Posts: 7
    got it!

    the width of the scene was on 480. i enlarged it - now it works!!

    Thank you guys for your advice!
Sign In or Register to comment.