Forum Thread
by member
  Posts  
making a gun shoot in unity (Forums : General Banter : making a gun shoot in unity ) Post Reply
Thread Options
Sep 2 2013, 10:36pm Anchor

Hi everyone so i'm new to video games and i'm attempting a first person shooter i know some javascript and python but thats about it. 
so anyway i have been stuck on the main part of a fps game, making the gun shoot! i have googled and youtubed it but nothing seems to work so im seeking advice on this because i'm very close to getting all the main components down i have running walking looking jumping etc. i have been making lots of stuff in blender so once i get this part down and animation i can probably get this into an actual indie game.
Thanks.

Sep 3 2013, 3:59pm Anchor

Are you sure you did your search properly? Simply searching for: "unity gun shoot tutorial" gives tons of results. Both with raycasting and bullets, including scripting in JS. It won't get any easier than a 10 minutes video tutorial...
You should also search the Unity Answers, you will find many, well... answers.... there:
Answers.unity3d.com

TKAzA
TKAzA Rightio then...
Sep 3 2013, 8:12pm Anchor

theres a shooting gallery source you can download,
Unitymagic.com
its basically a tutorial on raycast shooting with physics, pretty handy as a base before you add damage code.

--

TKAzA
DBolical Community Manager
Get Noticed Get Headlined

Copyright, IndieDB, SlideDB or ModDB issues PM me.
www.moddb.com www.indiedb.com www.slidedb.com
Do you like 3D Art? We do too!

Sep 3 2013, 8:50pm Anchor

i will check out that thanks but i did do research most didnt work and i already know how to make the gun shoot but it looks crappy and i dont know how to add a muzzle flash and stuff and almost al the stuff i find is just the same thing

TKAzA
TKAzA Rightio then...
Sep 3 2013, 11:05pm Anchor

adding a muzzle flash i would assume involves a light and a 2d sprite or 3d, attached to a trigger or called via a script that triggers on mouse click.

Im not experienced enough in unity to explain in detail i would fiddle around until i got somthing that works, your best opening demo files like the bootcamp demo and seeing how the did the muzzle flash on their rifle.
Assetstore.unity3d.com

--

TKAzA
DBolical Community Manager
Get Noticed Get Headlined

Copyright, IndieDB, SlideDB or ModDB issues PM me.
www.moddb.com www.indiedb.com www.slidedb.com
Do you like 3D Art? We do too!

Sep 4 2013, 9:24pm Anchor

thank you people :D i hope to release a very early sandbox test in a couple of months once i get this to work

Reply to Thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.