Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1075932 Posts in 44152 Topics- by 36119 Members - Latest Member: Royalhandstudios

December 29, 2014, 04:14:49 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)How to Make a Gun Shoot in Unity3D
Pages: [1]
Print
Author Topic: How to Make a Gun Shoot in Unity3D  (Read 1274 times)
CowMainia
Level 0
***


Cheese Burgers


View Profile
« on: September 02, 2013, 06:53:25 PM »

I FIGURED IT OUT NO NEED FOR ANYMORE HELP THANK YOU


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 i'm 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.
« Last Edit: September 13, 2013, 04:33:15 PM by cowmainia » Logged

LINK SPAM! YouTube::Google+::Twitter(coming soon)
z84c00
Level 0
***


View Profile
« Reply #1 on: September 03, 2013, 03:49:28 PM »

No offense but... seriously?

At the off chance you are, I'd highly recommend starting with something simpler and start with some basic stuff and what not..

Just sayin'

-Z8

Logged
nikki
Level 10
*****


View Profile Email
« Reply #2 on: September 04, 2013, 01:15:57 AM »

Unity 3d: Simple First-Person Shooter Tutorial - Part 1
Unity 3d: Simple First-Person Shooter Tutorial - Part 2
Unity 3d: Simple First-Person Shooter Tutorial - Part 3
Unity 3d: Simple First-Person Shooter Tutorial - Part 4
Unity 3d: Simple First-Person Shooter Tutorial - Part 5
Unity 3d: Simple First-Person Shooter Tutorial - Part 6
Unity 3d: Simple First-Person Shooter Tutorial - Part 7

success!
Logged
CowMainia
Level 0
***


Cheese Burgers


View Profile
« Reply #3 on: September 05, 2013, 05:03:16 PM »

thank you but i have everything but the gun shooting and that doesn't really show a muzzle flash or sound or anything Cry and i have seen that tutorial series already
Logged

LINK SPAM! YouTube::Google+::Twitter(coming soon)
Xienen
Level 3
***


Greater Good Games


View Profile WWW
« Reply #4 on: September 08, 2013, 03:55:11 PM »

You must first understand what techniques are available to you before you can decide how to do something like a muzzle flash.  Otherwise, you'll have no idea how to break it down into its components.  A muzzle flash is usually a combination of a alpha transparent set of planes and a dynamic light.  A gun sound in Unity is just played at a location, just like most other sounds(use a sound emitter and have a sound listener attached to your player).  To an experienced programmer, these things are obvious, but most of us started with something a little less open ended than Unity...such as UDK or the Source engine...or bought an FPS starter pack from the Unity Asset store...or just spent many years experimenting with random shit and failing miserably before we actually attempted to make a real game.
Logged

CowMainia
Level 0
***


Cheese Burgers


View Profile
« Reply #5 on: September 11, 2013, 08:53:32 PM »

Actually I have figured out how to use raycasting and have hooked up a particle system to it so i don't really need help anymore and also i have tried that method before it didn't work so well i will however use that method for grenades or so you can throw rocks at people (best weapon ever)
Logged

LINK SPAM! YouTube::Google+::Twitter(coming soon)
Rat Casket
Level 10
*****


i can do what i want

TheRabbitInferno
View Profile WWW Email
« Reply #6 on: September 13, 2013, 05:57:20 AM »

Just break it down.

1. Clicking the mouse makes the gun shoot.
2. Some sort of feedback after clicking. (animation, sound, whatever)
3. Create a projectile or raycast of some kind that comes out of the gun.
4. Define what happens when the projectile/ray hits something.

Step 1 and 2 should be easy. If you can't figure those out then you have two really specific things to look up. How to tell Unity that I clicked the mouse, and how to trigger something when its clicked.

If you can't figure it out then you need to start with something more basic. This is pretty much as simple as it gets.
Logged

CowMainia
Level 0
***


Cheese Burgers


View Profile
« Reply #7 on: September 13, 2013, 04:31:45 PM »

i already have that but thanks anyway
Logged

LINK SPAM! YouTube::Google+::Twitter(coming soon)
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic