How can i attach an object to one side of the camera

v00d0v00d0 Member Posts: 143
edited May 2012 in Working with GS (Mac)
I need to attach an object to the back side of the camera that move orizzontally on the scene.

http://i48.tinypic.com/2na06tw.png

it have to follow the back of the camera cuase if it touch the main actor the actor die. Thanks guys for you help

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer
    if you have the playerActor controlling the camera …
    and a following spikesActor
    add a displayText to each with expression: self.Position.X

    drag the actor that controls camera into scene
    … place within the cameraTracking area at Right edge of that area
    drag the spikeActor into scene itright edge at the left edge of cameraTracking square

    on the spikeActor:
    unlock behaviors
    constrain Position.X to the playerActor's (controllingCamera) Position.X …
    minus the difference of their Xs
    (click on the small above the scene editor and see the displayText for the X positions)

    demo: http://www.mediafire.com/?wa8j2pduyc30tk2

    image MH

Answers

  • v00d0v00d0 Member Posts: 143
    Thanks m8. But i try it before posting but how u can see in the image. The object don't stop moving when the camera touch the end of the scene. The camera is controlled by an actor that have the move attribute, with 150 speed 0 degree
  • v00d0v00d0 Member Posts: 143
    Im just explaining you how i controlled the camera. And im saying that the actor dont stop moving at the end of the scene but it go out of it. ( with the method you suggested me before )
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    If I understand you correctly, can't you just add a Rule in that only makes it move if the camera origin is before the end of the scene, then the actor will stop when the camera gets to end.

    Ace
  • v00d0v00d0 Member Posts: 143
    Right ill try it. Sorry but im not native engllish. So i think in another language while im typing
  • v00d0v00d0 Member Posts: 143
    tshirtbooth can u please post the link here when u upload the video? Tanks a lot. :)
Sign In or Register to comment.