Comments (3)
I also can't seem to find a way to set an animation when he is climbing.
from 2d-platformer-hunter.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 2d-platformer-hunter.