Alice Community  

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

Reply
 
Thread Tools Display Modes
Controlling a gun with hands
Old
pianoman3
Junior Member
 
Status: Offline
Posts: 2
Join Date: Apr 2012
Default Controlling a gun with hands - 04-23-2012, 07:23 PM

Hi, im making a fps and I want the WASD letter to control the gun with hands. I made an event that says while W is pressed move foward at speed of 5 meters per second and the duration is .5 seconds. However, when you hold W down it only goes for as long as the duration is set. My question is, how do I make it to where when you hold down W, the object continuously moves until W is let go? Thanks
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 04-24-2012, 12:07 AM

You put it in a while loop. For example, while W key is down, move forward 1 meter .5 seconds abruptly.
While is found when right clicking a when event.
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Default 04-24-2012, 07:38 AM

or even better close to the bottom of the methods page there is a "move at speed". Use this and then he shouldn't stop.


<Insert_Signature_Here>
   
Reply With Quote
Old
pianoman3
Junior Member
 
Status: Offline
Posts: 2
Join Date: Apr 2012
Default 04-25-2012, 09:15 PM

Got it. Thanks!
   
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.