1. #1

    Sidescroller Camera?

    I'm trying to make a 2D sidescroller and I'm having issues with the camera. I've got the camera porition and target behaviour "glued to target" and the position and target interpolation at 100. I've got the camera angle where I want it, but the camera moves whenever my bike moves. So my question is, how do I lock the camera vertically, but have the camera move with my player horizontally?
    Share this post

  2. #2

    Re: Sidescroller Camera?

    Wouldn't using "keep position" be better for that?
    Share this post

  3. #3

    Re: Sidescroller Camera?

    It does the same thing as glue to target. The camera moves whenever the bike moves vertically
    Share this post

  4. #4

    Re: Sidescroller Camera?

    So you want the camera to follow the rider, but you don't want the camera to jump with the rider?

    Maybe you could use one of those object positioning thingamablobs and make a invisible box stay at the same position as the rider. I'm sure it would be possible in some way to make it only take horizontal position into account and not vertical. That way a box could always slide along the ground and not jump with the rider.

    Then set the camera target as the box and it should work.

    I don't know much about object positioning event stuff but there are some guys who know everything about it. I think what I said is possible.

    EDIT: I sure you can set it so one axis is set as the rider's position, whilst another axis is a value of your choosing.
    Share this post

  5. #5

    Re: Sidescroller Camera?

    I thought glue to target followed the rotation of the bike as well.
    Keep position just pans.
    Well thats what I've noticed since messing with the camera settings for my own project.
    Share this post

  6. #6
    RetiredRonin's Avatar Senior Community Manager
    Join Date
    Sep 2012
    Location
    Ubisoft NC Office
    Posts
    7,343

    Sidescroller Camera?

    So... Like Roadkill from Trials HD?

    I used about 100 custom cameras in there. I'll mess around with it some tomorrow and get back to you with my findings if you don't get it before then.
    Share this post

  7. #7

    Re: Sidescroller Camera?

    you could use a object position event on the camera that follows the x and y vallue(add some distance with operators) of your rider but not the y value
    Share this post