So, I am currently working on a game where I would like it to include a gun in the view of first person. I would like it to have all basic options, such as; shooting, aiming, and reloading. Including animations where you can see the reloading and everything. As well as sound effects to go along with the weapon features. Possibly even particles like smoke that comes out of the barrel which I think I’d know how to do with maybe even a bit of a flame coming out of the barrel just like a real gun.
I have attempted to make a first person view for a gun and it works decent. All I have so far is the gun and when you left click it plays an animation that goes 0.01 seconds. Also, can you go lower than that? Because I haven’t seemed to be able to, because I have a good amount of frames as well to make the animation look smoother when it is shooting. But the problem is that I have to fully left click the mouse down to see the full animation and then it stays at the last frame until released the left click mouse button. It is pretty basic, and I have it fire at another sprite and it makes a bullet hole in those spots where the sprites are.
I really don’t know how I could make all of this work, maybe you could set a key to play a certain animation for the reloading, add in some sound effects when the shooting key or button is clicked, as well as the reloading key.
But I need help, could you guys possibly make an example? That would be so amazing. I’m sure it would also help many other people out there that are also wondering how to do something like this but aren’t sure.
Simply, I just want a fully functional gun that works like an actual one in real life and that also has the view in first person.
Again, all help is highly appreciated.
If you would like, I can also mention you in the game credits for this, saying something like "Gun System by: “Your name”
Plus early access to my game
Thank you for taking the time to read this post, and have a nice day.