Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
KaswanX
Junior Member
 
KaswanX's Avatar
 
Status: Offline
Posts: 4
Join Date: Oct 2011
Default 10-27-2011, 09:28 PM

Heres the file I worked on to test it. It may bug if you move and shoot.
Attached Files
File Type: a2w Gun test.a2w (648.8 KB, 18 views)
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Cool 11-02-2011, 01:42 PM

I put two bullets in the gun and only have one move. I tell the first bullet to move forward "x" meters. then as seen by gun barrel. Then I tell bullet 1(the one that was shot) to move back to bullet 2(the one still in the gun"
   
Reply With Quote
Bullet
Old
Centuri0n
Member
 
Centuri0n's Avatar
 
Status: Offline
Posts: 44
Join Date: Oct 2011
Location: In a box with free wifi
Exclamation Bullet - 11-03-2011, 07:19 PM

What I did on my fps is i made a cone inside the gun that moved forward.
For example.

When [Space] is typed:
Method: Bullet

[Cone] move forward (desired length) Duration: 0 seconds
[Cone] move backward (^^ length) Duration: 0 seconds

(im not sure if it is backward/forward or left/right for a cone )
   
Reply With Quote
Old
waqar
Senior Member
 
Status: Offline
Posts: 51
Join Date: Sep 2011
Location: Pakistan
Default 11-03-2011, 10:21 PM

thats a good example of code he gave over there i m also making a shooting game like virtua cop and I pasted my code in Jedi's post of HALO 2 on page 16 it maybe helpfull to u i guess watch it
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Cool 11-06-2011, 02:51 PM

Quote:
Originally Posted by Centuri0n View Post
What I did on my fps is i made a cone inside the gun that moved forward.
For example.

When [Space] is typed:
Method: Bullet

[Cone] move forward (desired length) Duration: 0 seconds
[Cone] move backward (^^ length) Duration: 0 seconds

(im not sure if it is backward/forward or left/right for a cone )
the problem if you do that is that if you have an object that you are shooting it won't know that it was hit. I just tell it to move forward x meters in .01 seconds. I make it go straight forward by telling it to move as seen by gun barrel
   
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.