TOP DOWN MOVEMENT in UNDER 1 MINUTE! Unity 2D Tutorial

preview_player
Показать описание
In this video I'll show you a quick and simple way to create top down player movement in Unity!

if there are any tutorials you'd like to see, feel free to leave a comment below!
------------------------------
(no copyright is intended by using this music, all rights go to their respective creators).
------------------------------
Рекомендации по теме
Комментарии
Автор

This is exactly what I've been looking for. No fluff or excess drivel, just straight to the point making it work. If I wanted to understand the finer details of these concepts I could just look at Unity docs and research on my own.

john_paul
Автор

Every tutorial i see on youtube always has atleast 10 minutes just to explain this. Thank You!

dika
Автор

So, a 30-minute tutorial didn't work, but a 1-minute one did. Wow!

Pointless-Content
Автор

Thanks bro!!! Very useful. Just to the point. Keep it up bro. I'm making my first top-down game.

TheWise
Автор

It's really perfect! This video is really what we need when we should remember something we already studied. Thank you!!!

devklebinho
Автор

i dont think your still responding to replies but, when id o this my character only moves left and right when i press w and d? and there are no errors??
nevermind! i had set the vertical axis to X instead of Y

ShinyExuante
Автор

Awesome tutorial, but shouldn't we put rb.velocity = moveInput * moveSpeed; into FixedUpdate instead of Update to avoid speeding up or slowing down due to framerate?

aethervibesofficial
Автор

thank you so much this was quick and easy lol

devmarboy
Автор

It doesnt work for me in fact he gives a CS0844 error where it says that moveInput is not working. Can you help me?

ialyon
Автор

heres the code for people who are to lazy to type it:

edit: only use this if your code doesnt work/you get errors.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TopdownMovement : MonoBehaviour
{
public float moveSpeed;
public Rigidbody2D rb2d;
private Vector2 moveInput;

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
moveInput.x =
moveInput.y =

moveInput.Normalize();

rb2d.velocity = moveInput * moveSpeed;
}
}

vmqs
Автор

Im trying to make a 2d gta inspired game with online and different citys and shops and gun and car and apartments that you can buy so thank you this helped me out alot

FlixOfficialx
Автор

ArgumentException: Input Axis horizontal is not setup.
To change the input settings use: Edit -> Settings -> Input
topdownmovement.Update () (at Assets/topdownmovement.cs:20)

AsherKadmiel
Автор

So. At 0:42 I don’t have the sections for move speed and rb2d. Yet I did everything you did. Any help?

bendugamr_the_blobfish
Автор

Very helpful bro, Thank you so much, can you make more Top-down short tutorial videos?

huycos
Автор

How do I choose the controls? It looks right, but how do I make it so that it goes up when I press W etc...

EvilP
Автор

thanks for this vid man my rpg game is coming along now.

iconic
Автор

Hey man, I have some decent experience with Unity, just took a long break. I am now making a top-down game but I'm having one issue:
-My player still falls down, even though I set the gravity scale to 0 and later on, even the mass.
I've never encountered this issue and I wonder if you could help.
Thanks in advance!

randyxyt
Автор

how do i choose the button to press! please respond quickly!

Spazmalex
Автор

For those whose character slowly sinks set the body type to Kinematic

Plumswillow
Автор

Whenever I run the game, the numbers for X and Y move, but the image doesn't

Mothlord
join shbcf.ru