1. #1

    Another game camera question....

    Hello all.

    I'm trying to make a 'side scroller' type game with a fixed camera that only moves on one axis - the horizontal.

    This I have figured out. I have one object that leads the rider by about 2Metres using OPE on one axis only - If the rider jumps or whatever, the object only moves horizontally.

    I then used OPE to make a custom camera follow this object on the same horizontal.

    The problem is when the rider goes too high or low from the object, the camera auto changes FOV or something effectively zooming in or out. The camera still keeps centered on the object however 'zooms' so the rider never reaches the top or bottom of screen.

    I want the rider to be able to go off the top of the screen, bypass the exit and find a chest with a whistle in it - hint hint....
    Share this post

  2. #2
    stiggyhead's Avatar Senior Member
    Join Date
    Mar 2014
    Posts
    1,585

    Re: Another game camera question....

    triggering a state event that disables the camera at the edges of the FOV should work (not sure )

    glue area triggers to the camera and allign them so they match with the fov.
    Share this post

  3. #3

    Re: Another game camera question....

    I would try making an OPE force a dummy object to follow the X and Z positions of the bike, but not the Y. Then have the camera point to the dummy object instead of the rider.
    Share this post

  4. #4

    Re: Another game camera question....

    That's what I did mate. As I said, if the rider gets too far from that object that my camera is locked to, then the camera compensates.
    Share this post

  5. #5

    Re: Another game camera question....

    Sorry, I missed that somehow. Are you sure the camera's target is the object? It shouldn't refocus for the rider at all. Try checking the "use as game camera"... that might force it.
    Share this post