About 288,000 results
Open links in new tab
  1. c# - How to get smooth 2D jumping in Unity? - Stack Overflow

    Apr 23, 2019 · I'm using tilemap and Unity 2019.1.0f2. I've already tried: rb.AddForce(Vector2.up * jumpForce), rb.velocity = Vector2.up * jumpForce, rb.MovePosition(new …

  2. Brackeys/2D-Character-Controller - GitHub

    Here is a free to use Character Controller for 2D platformer games in Unity. Currently the Controller features: Smooth movement Jumping Crouching Events for setting up animation 2D …

  3. C# Smooth 2D Platformer Movement Script for Unity - CodePal

    Learn how to create a smooth 2D platformer movement script in C# for Unity. This script will give your character a weighty and responsive feel, similar to the movement in the Souls-like …

  4. Movement Script in C# for Unity · GitHub

    Dec 17, 2015 · Alright, if anyone is still here, apply a rigidbody and collider to whatever object your player is, apply a script called "PlayerMovement", and copy this code: using …

  5. C# 2D platformer movement code - Stack Overflow

    Oct 2, 2015 · Some things you could check: Are all your colliders 2D and set to be triggers? Have you checked your layer collisions are actually happening? //Movement. public float speed; …

  6. Unity Scripts - 2D Movement Script (C#) - tirionlearning.com

    Easily add fluid, responsive 2D movement to your Unity project with the PlayerMovement script! Includes smooth horizontal control and multiple-jump support. Get started building your game …

  7. GitHub - rahemk/PlayerMovement: A player movement script for a 2D

    Attach the PlayerMovement script to your player character object. Adjust the movement speed, acceleration, jump height, and gravity parameters as per your game's requirements.

  8. Mastering Character Movement in C# Game Development

    Jul 22, 2024 · To create smoother and more realistic movement, you can use linear interpolation (lerping) to gradually move the character towards the desired position. This can prevent …

  9. Creating Simple 2D Player Movement and Jumping in Unity

    In this tutorial, we'll walk through the process of setting up basic 2D player movement and jumping mechanics in Unity using a C# script. By the end of this tutorial, you'll have a player character …

  10. 2D smooth top-down movement - Unity Discussions

    May 9, 2020 · In the fixed update we use the input to change the character position. This script assumes your “Up” is Y and your forward is Z. // playerscripts.cs. public void Update() motion …

Refresh