Giter Site home page Giter Site logo

Comments (1)

Cleptomania avatar Cleptomania commented on September 24, 2024

This is roughly related to the camera being scrolled multiple times. There is a switch_map function which handles the map switching upon contact with a door that leads to a new map. This function scrolls the camera with an instant move speed(1.0).

However the on_update function also constantly scrolls the camera using the default camera move speed(which is not instant to create the scrolling camera effect), this means that we're essentially instantly scrolling the camera to the player, and then trying lerp it there on the normal camera speed at the same time, so it creates this rubber band effect we see now.

What we will need for this is a way to control the camera scroll speed for a given run on of on_update, such that it could be the normal camera speed constant normally, but could be changed to 1.0 if we are changing maps.

from community-rpg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.