Ella’s Patch Notes 1.1 - 9/22/20
New + Improved
- First I did the speed at 10.0f
- Then Rigidbody playerRb
- My zTbound as 10 and my zBbound as -14
- Then xRange
- In void start playerRb = GetComponent<Rigidbody>();
- In void update MovePlayer();
ConstrainPlayerPosition();
- In void ConstrainPlayerPosition if (transform.position.z > zTBound)
transform.position = new Vector3(transform.position.x, transform.position.y, zTBound);
if (transform.position.z < zBBound)
transform.position = new Vector3(transform.position.x, transform.position.y, zBBound );
if (transform.position.x < -xRange)
transform.position = new Vector3(-xRange, transform.position.y, transform.position.z);
if (transform.position.x > xRange)
transform.position = new Vector3(xRange, transform.position.y, transform.position.z)
- In void move player float horizontalInput = Input.GetAxis("Horizontal");
float verticalInput = Input.GetAxis("Vertical");
transform.Translate(Vector3.forward * speed * verticalInput * Time.deltaTime);
transform.Translate(Vector3.right * speed * horizontalInput * Time.deltaTime);
What’s Next
- I want to be able to collect the the flower because for some reason it is not collecting it
- My cubes/obstacles are not either big enough or not working but I them to show up better
- When the chicken movies it moves a little fast so I want that to be a little slower
Leave a comment
Log in with itch.io to leave a comment.