October 8th Week 3
Another late post but have made more progress in the game and need to polish some things again. Last week I had worked on the shooting and gotten the arrows actually flying the right direction this week I added minor things that will help later on and started working on an important aspect of the rounds and turns system in the game. I plan on working on the rounds more next week and hopefully fixing the aiming feature so it feels a little better. I added new variables called aiming and hipfire which are the positions of the main bow. I was able to get the bow to move to an aiming position which moves it slightly more to the left as if drawing the bow and when not aiming it needs to be in the hipfire position. I think I will have to create a Boolean and if not in the aiming position it will always be in the hipfire position, however I do not want the bow to immediately return to the hipfire position after releasing the mouse button which is what it currently does. Once I established the Boolean it should only aim when held down and move back when not aiming. I also fixed the animation for the bow so the string now snaps back at the correct timing. I also added a variable that can help smooth the transition of the bow moving so it doesn't just teleport. The rounds system is still a little buggy, but hopefully I will be able to set a timer and end the turn of one player when they shoot. Also plan on added a zoom to the camera when aiming which should help players aim more successfully when at a further distance.
1. Image one is the position of the aiming which can be adjusted
2. Image two is the a third person view of the bow having the string snap at the correct timing.
3. Image 3 is the unity inspector view of the bow script and at the bottom is the new variables used.
4. Image 4 is the code for the bow script and very small print I pointed at the new variables being used. The code also has the if input which was still used for firing however underneath the existing code I added the code to transform the position of the bow which puts it in aiming position.




Comments
Post a Comment