Disabling a Sensor

Is there a way to disable a Keyboard sensor after a single key press? I would like to log the first character pressed and not allow anymore presses afterwards.

you can have a prop, the prop has to be “1” to let the player to press the button, then after the button is pressed the prop turns to 0.

Hope this helps.

Thanks, that is exactly what I needed.

Or you could use a state actuator:


No problem. The state system works great also, a good alternative, but you might need the state space for more important stuff.

This is a great community. Thanks for the replys.