Coder Social home page Coder Social logo

Comments (2)

Maruno17 avatar Maruno17 commented on July 1, 2024

I've just pushed a fix for the dependent events disappearing instead of following you. The dependentEvents array wasn't being created properly.

As far as ledges go, the problem is that an event/player moves at walking speed while jumping over a ledge, meaning the player could run away while the following event is still jumping, resulting in the event making illegal moves to try to catch up to the player. Since a ledge jump involves travelling two tiles, the dependent event's jump would need to be twice as fast as the player's movement speed away from the bottom of the ledge (whether they're walking or running) to keep up - this is what the following mon does in HGSS. It's inelegant but it's the only way to avoid problems.

As far as implementing this behaviour, I personally won't. I'm not familiar with the dependent event scripts, aside from knowing that they'd benefit from a complete rewrite, so I'm happy to put this fix off until that happens. Everywhere in DPPt where the player is accompanied by another trainer, there are no ledges to jump over (thus avoiding this problem), so my advice is to not mix followers with ledges, at least for now.

from pokemon-essentials.

Maruno17 avatar Maruno17 commented on July 1, 2024

I've just pushed a fix for the ledge jumping speed. Dependent events now perform the whole jump in the same time the player takes to make their next move (a la HGSS). It makes for super-fast jumps (if the player isn't immediately making another jump), but at least the dependent event keeps up now.

I've also fixed dependent events not always looking where they're going, i.e. turning to face the player at the start of a step rather than at the end.

from pokemon-essentials.

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.