Camera follow withh delay

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hey guys!

    For platformer game, how to make a camera to follow the player but with a bit of delay between start and end of the movement.

    For example:

    Player starts moving and then few milliseconds after, camera starts to follow/chase the character

    Player stop moving, camera is a bit behind and then few milliseconds after camera reaches the player and stop moving.

  • not sure, but maybe you can base the viewport position on a linear interpolation from its current position to the desired position but clamp it so it cant stray too far.

    do you know how to do a linear interpolation?


    Sent from my iPhone using Tapatalk

  • If you press left or right, add 1 to an alt. Value but maybe make sure there's a max limit so it won't go over 10 or whatever, and when that value >=5 or what you feel is good, you allow the camera to follow. If not pressing any direction you decrease from the alt value so when it goes below 5 it will stop scrolling, Maybe that will work?

  • This video by Almighty Zen Taco explains how to do it.
    Please login to see this link.
    Basically you create an invisible object that follows the player around with a small delay, and you set the camera to always center on that object.

    Or if you've got 3 bucks to spare, you could buy Volnaiskra's volCAMERA (check out the video to see all of its features).
    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!