Week 11 - My C# Scripts


The scripts I made are...

1. Jump - Attach it to a GameObject to make it Jump with a button. You may choose what the Jump Button is, as well as its Jump Height. It uses Force based movement.

2. Movement - Attach it to a GameObject to allow for forward movement. Velocity is based on the current track type and an animation curve. It used Velocity based movement.

3 Pick up - Attach it to a GameObject to allow it to pick up GameObjects with Tags {Ring, Token5, Token10, Token20, Aqua, SpeedBoost}. The effect it has on the GameObject depends on the tag. It requires a reference to a Movement Script.

4. Road Check - Attach it to a GameObject to allow it to query track types, angle of planes, and if it is still on the road. It returns those values to Movement and Turning Scripts.

5. Turning - Attach is to a GameObject to allow it to turn on its Y Axis. It also handles turning the player based on the normal vector of the plane it is standing on. It is based on an animation curve and uses transform to set rotation. IT DOES NOT USE TRANSFORM.ROTATE().

Leave a comment

Log in with itch.io to leave a comment.