Alice Community  

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

Reply
 
Thread Tools Display Modes
FPS Rapid fire Q
Old
SirThorfinn
Senior Member
 
SirThorfinn's Avatar
 
Status: Offline
Posts: 232
Join Date: Sep 2010
Location: Some where Unreal!
Default FPS Rapid fire Q - 09-12-2010, 09:46 AM

How do i create a rapid fire effect when i press the left mouse button until i release the mouse button without having loop until its done the animation a set # of times?
   
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 09-12-2010, 10:18 AM

Pretty much the same thing as here, but with the mouse button instead of a key.
   
Reply With Quote
Old
SirThorfinn
Senior Member
 
SirThorfinn's Avatar
 
Status: Offline
Posts: 232
Join Date: Sep 2010
Location: Some where Unreal!
Default 09-12-2010, 10:22 AM

Quote:
Originally Posted by x2495iiii View Post
Pretty much the same thing as here, but with the mouse button instead of a key.
Well thats what i did but once i let go of the mouse it stops mid way through the animation and the gun starts drifting forward if i do that multiple times.
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow 09-12-2010, 10:56 AM

I think it's good that you're making an FPS, because it, more than anything else (well, that's debatable), gives you an understanding of practically everything in Alice.

Anyway, to do what you're doing, I'm once again going to need an attachment, so I can more directly show you.

In my FPS as well, I have to do the same thing. Basically, what you want is the gun/person to reset their point of view in the end portion, and even in the end of the firing method (this also helps if you want to experiment around with varying amounts of recoil without having to re-plug EVERYTHING in).

Basically, upload the world and I'll see what I can do.


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Old
SirThorfinn
Senior Member
 
SirThorfinn's Avatar
 
Status: Offline
Posts: 232
Join Date: Sep 2010
Location: Some where Unreal!
Question 09-12-2010, 11:16 AM

OK this is what i started but i haven't done much. I'm trying to get the player's view to work good before i start getting really into it.
When i would hold the fire button and let go before the animation play's 50 times (just what i had it set for) it would ether stop mid way and drift off if i did it multiple times or crash the simulation.
Solider 2.a2w
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow 09-12-2010, 11:20 AM

Downloading...

Fixing...


The error, I think, is caused by the sound, not the shooting method.

Still working...


Okay, finished it. Ask your questions.


EDIT: Oh, you posted while I was editing. Oh well.
Yes, you can still have sound. Just take a look at the recursive sound method I added.
Attached Files
File Type: a2w Solider 2.a2w (1.65 MB, 9 views)


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.

Last edited by debussybunny563; 09-12-2010 at 11:38 AM.
   
Reply With Quote
Old
Umbreon
Guest
 
Status:
Posts: n/a
Default 09-14-2010, 05:53 PM

...Have you tried the "While key is pressed" event? If not, make a new event (When key is typed (or the mouse, whichever)). Then, right-click > change to > While key/mouse is pressed
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.