Unity Platformer Control Script Demo
A one-screen demo for a unity script that implements platformer controls, allowing for customising a jump animation frame by frame in the editor. Move with A/D, jump with SPACE.
The script can be downloaded from https://github.com/NullAux/Unity-Platformer-Script
A number of issues and points for extension are laid out in the code comments, which can be seen in this demo.
Features/Issues:
+Edit player's jump cycle in editor, broken down by frames
+Customise terminal velocity, walk speed etc.
+Code includes suggestions for extending (incl. air jumps, locking direction of jump)
-Bounds checking allows for some clipping into ceilings/walls, which can lead to being awkwardly 'caught' on surfaces, or jumping up to floor level (To see this, try jumping into the lower corners of blocks)
-Velocity preserved after colliding with surfaces, allowing for awkward stop/start motion
-Level geometry requires specific tagging to work (see code comments)