I’ve a problem with my current game project “NAFS-Race”.
Every time I use Keyboard input, in combination with Phyton-code, the code will be executed twice.
The following picture shows my complete setup. The key “B” was only pressed one time, but the code was executed twice.
Settings like “Level” or “Tap” have no effect.
In fact there is one excecution(/sended message) while pressing the key and one while releasing the key.
This is logical, but how to prevent it?
(I solved it in another case with another state and a delay sensor, but this is to complex, I think)