Never had this Issue

I believe the way I originally wrote this part worked past the issue.

void Update () {
		if (transform.position.x - width/2 <= Min) {
			speed = 5f;
		}else if (transform.position.x + width/2 >= Max) {
			speed = -5f;
		}

		this.transform.position += new Vector3(speed*Time.deltaTime, 0f, 0f);
	}

I can see my code makes it impossible to alter the speed in the editor, but currently I like the way they move and don’t see the need to change it.

Privacy & Terms