Unity Game Update



Today in our coding lesson i added enemies to the game, in this case they are chefs that i made. To these enemies i attached a waypoint script to give them movement, then messed around with the coordinates to make them follow a path.

After that i added box and polygon colliders to everything in the scene so that they can be bumped into. I then added code that made the player face the direction they are moving, rather than being a static image. A problem i came across was that the player’s character automatically reverted to it’s original rotation when not moving, the solution was to add “if (direction.magnitude > 0) ” to the code.

Next i will make the chefs throw knives, and i will give them a line of sight so that they only throw the knives when they see the player.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s