Hello, Although i have a decent amount of programming experience, i'm still getting my head around the unity API and have created the following code using a tutorial i found on the unity website. Code (CSharp): public class BasicMovment : MonoBehaviour { // Start is called before the first frame update void Start() { rigidbody = this.GetComponent<Rigidbody2D>(); } // Update is called once per frame public Animator animator; //public float movementSpeed = 1f; //Movement Speed of the Player public Vector2 movement; //Movement Axis public Rigidbody2D rigidbody; //Player Rigidbody Component void Update() { animator.SetFloat("Horizontal", Input.GetAxis("Horizontal")); animator.SetFloat("Vertical", Input.GetAxis("Vertical")); movement.x = Input.GetAxisRaw("Horizontal"); movement.y = Input.GetAxisRaw("Vertical"); } void FixedUpdate() { rigidbody.MovePosition(rigidbody.position + movement * Time.fixedDeltaTime); } When i tested the code it works perfectly. However the asset the script is linked to walks slowly downwards been driving me nuts for hours now please send help!
Hi and welcome! What exactly is the problem? From what you wrote, you created some movement script from a tutorial, posted its code, then claimed it works perfectly and said some asset i dont know is driving you nuts. Maybe it's just me, but i certainly cant help you with that explanation, as it appears nothing but the last sentence is relevant to your problem?