Please help with jumping and Control camera !!

aalzankiaalzanki Member Posts: 283
edited November -1 in Working with GS (Mac)
Hi....
I'm working on this game...
http://www.mediafire.com/?mdhtfzlk3it
1)When i press the jump button which is space and keep my hand on it the ball won't keep jumping.
Try to keep you hand on the space button and see what happen, this is the first problem.
2)I have my actor control camera moving upward but i want the ball to control the camera too and I don't want the ball to go back down if it controls the camera (I have gravity)
So please help
Thanks :) and sorry for my bad English

Comments

  • synthesissynthesis Member Posts: 1,693
    You can only have 1 actor control the camera at a time. If you want 2 separate actors to have camera control ability...you need to have a game attribute to tell which actor to control the camera.

    Example:
    make a game attribute called "cameraControllerID"
    Set it to 1

    Then in your jumping man actor, make a rule:
    when cameraControllerID = 1
    control camera

    Then in your ball actor add the rule:
    when cameraControllerID = 2
    control camera

    Then set up rules to change the "cameraControllerID" to 1 or 2 whenever you want the camera to switch focus.

    I think this will work...I've never tried it...but it should work for you.
  • aalzankiaalzanki Member Posts: 283
    It worked out but not with my idea, but it's ok I don't need it any more :)
Sign In or Register to comment.