Skip to content
Dawnosaur edited this page Jul 26, 2023 · 22 revisions

⚠ Work In Progress - Come Back Soon! ⚠

About

  • What is my platformer movement for?
  • Why should you use it?
  • Why shouldn't you use it?

Getting Started

Run

float targetSpeed = _moveInput.x * Data.runMaxSpeed;
float speedDif = targetSpeed - RB.velocity.x;
float movement = speedDif * accelRate;
RB.AddForce(movement * Vector2.right, ForceMode2D.Force);

#region LAYERS & TAGS
    [Header("Layers & Tags")]
	[SerializeField] private LayerMask _groundLayer;
	#endregion

    private void Awake()
	{
		RB = GetComponent<Rigidbody2D>();
		AnimHandler = GetComponent<PlayerAnimator>();
	}

Jump

Wall Jump

Dash

Manual

Clone this wiki locally