Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Im trying to make a top down shooter, how did you make the movement

Vector2 targetVelocity = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"));

 GetComponent<Rigidbody2D>().velocity=targetVelocity * movementSpeed;

Not ideal, and mostly gonna change due to refactoring, but it works.

(1 edit)

Thanks it worked really well, how do you make it so the character doesnt just fall, nvm figured it out