Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
How do i make a gun shoot bullets
Old
Sargamesh
Junior Member
 
Status: Offline
Posts: 9
Join Date: Nov 2009
Default How do i make a gun shoot bullets - 11-11-2009, 07:14 PM

I am making a Fps that is pretty good so far but theres only one problem. nothing shoots. Is there a relatively simple way to do make a gun shoot bullets.
   
Reply With Quote
Old
Sargamesh
Junior Member
 
Status: Offline
Posts: 9
Join Date: Nov 2009
Default 11-12-2009, 04:33 PM

Help plz i looked on google there was no tutorials
   
Reply With Quote
Old
matosh
Guest
 
Status:
Posts: n/a
Default 11-12-2009, 06:02 PM

im pretty sure there are many ways. but the way i am doing right now in a game is i use a spherical object, hide the sphere in the gun, set it as a vehicle to the gun, then just make a shoot method for the bullet to shoot out of the gun. also you have to set it to come back or make it so there is clips.
   
Reply With Quote
Old
Sargamesh
Junior Member
 
Status: Offline
Posts: 9
Join Date: Nov 2009
Default 11-12-2009, 07:36 PM

Is there a way to create objects or spawn objects so you have unlimited ammo
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-13-2009, 10:59 PM

No, but you don't need to, all you need to do is have the bullet move back to the gun in 0 seconds. I actually do that with the bullet shells in my Resident Penguin game.


(')>
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Wink 11-14-2009, 10:17 AM

I do that too but the problem with that in my modern warfare game is that the ball never moves perfectly forward so i made an object that it moves to. I posted a new version of Modern Warfare so...have fun, i think its good
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-14-2009, 01:08 PM

I checked it out already. I thought it was good stuff.


(')>
   
Reply With Quote
qqrwe
Old
amatuer
Guest
 
Status:
Posts: n/a
Default qqrwe - 08-10-2011, 04:04 PM

i need help with making my thing shoot
   
Reply With Quote
Old
Nighthawk0973
Senior Member
 
Nighthawk0973's Avatar
 
Status: Offline
Posts: 240
Join Date: May 2011
Location: In front of my computer.
Default 08-10-2011, 10:36 PM

All right so what I do is this:

Since when the bullet is vehicle to the gun I release the vehicle. Next the bullet moves forward. Finally it moves toward an object called 'bullet place holder' which is basically the bullet in it's orignal position. Finally I have the bullet face the camera and than turn 180 degrees. This way the next time people shoot it's shooting strait in front of them. And turning doesn't mess wit the bullet.

Also, try to refrain from posting in topics that where last replied in 2009. Hope this helps though!
   
Reply With Quote
Old
KaswanX
Junior Member
 
KaswanX's Avatar
 
Status: Offline
Posts: 4
Join Date: Oct 2011
Default 10-27-2011, 08:22 PM

I have a recoil (gun turn backward 0.1 durat: 0.1 sec, gun turn forward 0.1 durat: 0.1 sec) then bullet is in the chamber while guns vehicle is n camera and all that I have... Do Together: [Set opacity to (I had a tube, cone, and cylinder as a bullet) 100% dur: 0 sec, (Tube (since I have the cylinder and cone's vehicle tube I just move the tube) move forward 40 meters as seen by camera duration 0.05/0.1 sec.] Do together: [Bullet move backward as seen by camera dur: 0 sec, bullet (tube, cone, and cylinder) set opacity to 0%]
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.