dawnosaurdev / platformer-movement Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I am trying to add moving platforms to my game, I am doing this by parenting the player to the platform when they stand on it, but when I try to move horizontally while parented to the platform, the player's move speed is very choppy/inconsistent/stuttering. The velocity in the rigidbody says it is at the correct speed. This only happens when the player is parented to a moving gameobject and when the player is standing on the gameobject.
Hey,
I'm new to coding and i try to use your code to make my own 2d platformer but i have a problem with collision check i try to make a bool variable to detect the collision between ground and my player for the animator but i'm not abble to make it work so i give you the code and if you need the whole project you can contact me on [email protected], if you can explain to me what im doing wrong it will be really great for me to learn !!!
PlayerMovement.zip
I have tried out the demo and find that the player is quite strange using Celeste Type.
After a short debugging time, I think the Celeste Type's SlideSpeed
&& SlideAccel
should not be zero.
Becuase I am using a windows, I cannot make a pull request to fix this.
Also, I think the implementation of slide is buggy. If I make a double wall jump in level 2, I will slide upwards a lot on the second wall, which is not intended. Maybe letting the velocity.y be zero at starting frame of wall sliding is a good idea.
the "Controls(Input Action Asset)" in "Asset/Data"
C# class file
should be "Assets/Scripts/Input/Controls" but "Assets/Scripts/Controls"
unity will auto gen. the class file in the error path when project opened, conflict with source.
While building the scripts for this I noticed your controls script is auto generated, how did you obtain this?, and I cannot seem to find the IInputActionCollection interface. If you could help out this would be amazing. I also noticed the Idisposable Interface was hard to find or not there. Maybe you could help me out if possible, both of these interfaces are apparently used in the controls autogenerated section. Love the video!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.