Thursday 23 March 2017

Dog Catcher Game Stage 4 Rotation of objects 23/3/17







This script i added makes the dog rotate and face a specific vector this is done inside my player movement script the director the player is moving in will make the sprite rotate to face  the direction. I'll be adding the script to the enemy as well as the player.

An issue i had when writing the script was the messed up with the brackets and did not put one where i had to this made it so the new rotation script only worked if i was moving downwards as i never had an bracket between the new code and the last "If" statement.


No comments:

Post a Comment