Alice Community

Alice Community (
-   How do I...? (
-   -   Controlling a gun with hands (

pianoman3 04-23-2012 08: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 01: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 08: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 10:15 PM

Got it. Thanks!

All times are GMT -5. The time now is 11:53 AM.

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