In these devlogs, I will show you the development process from start to finish, for an archery game. Before I begin developing, I like to brainstorm ideas and create a Game Design Document (GDD). Here is a link to a template GDD. This post will consist of mouse look and a start to shooting functionality. Let's get started!
Welcome back! This week we focused on mouse look and how the player will shoot the bow. The player(s) will be stationary and able to look around to aim. They can shoot at targets or other players depending on the game mode.
I removed the walking script and created a mouse look script that will move the camera, players rotation, and arms and bow with respect to mouse position. Here is what it looks like in testing:
The player should be able to fire an arrow with the left mouse button. They are to aim at a target or player and expect some dip. I added a small crosshair (dot) to help the player aim for testing. The arrow still needs some work after it has been fired. It does not change angle as it dips. The arrow will stick to whatever it collides with, until it is destroyed after a timer. Here is what I have so far:
As you can see in the shooting Gif, some arrows go through the target still. I still need to add all the colliders for each section of the target and create the point system. Will also work on getting the arrows to behave correctly in the air and create a shooting animation. This means, having them rotate and change angle when dipping down.
Code for project here: Precision
Follow Me Here To Keep Up:
Website: MMs Gaming Community