Git Product home page Git Product logo

Comments (3)

ajmortell avatar ajmortell commented on May 27, 2024

I also can't seem to find a way to set an animation when he is climbing.

from 2d-platformer-hunter.

ta-david-yu avatar ta-david-yu commented on May 27, 2024

Not really an issue. The motor works pretty great. Is there any way to out-of-box access the collider that is around the player? I want to adjust it for ducking. I have an abstract class called Behavior and Duck is a behavior component. When my character ducks I need to access the center of the box and the collider itself to resize it. I will need to access the motion speed as well to stop him when he attacks and speed him up when running. Awesome addition to 2D controllers.

I plan to refactor most of the code into a more modular structure, so users will be able to add a new state on their own.
For now, if you wanna change the size of the bounding box, you can access the collider and change the bounds directly and call Raycaster.CalculateRaySpacing() to update the rays position afterwards.

from 2d-platformer-hunter.

ta-david-yu avatar ta-david-yu commented on May 27, 2024

I also can't seem to find a way to set an animation when he is climbing.

Not sure if you are talking about ladder-climbing or wall-climbing.
For ladder-climbing:

  • You can register a callback to CharacterController.OnMotorStateChanged. The state of the motor is set to MotorState.OnLadder when you are climbing a ladder.

from 2d-platformer-hunter.

Related Issues (5)

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.