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.