How can I create a "Toggle Switch Sensor", so when I press W to move a cube continuously on the Y axis, and S to stop the movement? Can I do it from logic bricks?
2 Answers
$\begingroup$
$\endgroup$
0
It is possible to do this using a Boolean property and changing it using the toggle option, but it is easier to simply assign an integer a value. A Property Sensor set to pulse mode (to continually check to see if the value is still equal) and that activates your motion.
Blend file with working logic setup
![enter image description here][3]