First issue I encountered was making a shadow a trigger that will rotate a player. First iteration of this script didn't work for couple reasons. Eventually I managed to solve this problem. As I read through Unity Script Reference and there seemed to be couple solutions, there was only one that worked.
Then I had a few problems with detecting if player triggered the shadow so that it rotated him.
Split screen start view |
I also changed the way rotation was triggered. The script now counts the distance between players. And if main character is in specific range of the shadow it will start rotating.To stop rotation space need to be pressed by the main character and all other controls are disabled until then.
Next thing I to implement will be Minimap to make it easier to move around the world.
No comments:
Post a Comment