Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Controlling a gun with hands (http://www.alice.org/community/showthread.php?t=8407)

pianoman3 04-23-2012 07:23 PM

Controlling a gun with hands
 
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

Mr Kidnapper 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.

dakota95 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.

pianoman3 04-25-2012 09:15 PM

Got it. Thanks!


All times are GMT -5. The time now is 09:39 PM.

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