I set in logic brick a property sensor to trigger when there is a change. I have try click on TAP level what ever it wil trigger the controller twice . I verify by using a script to print the value of the property I am checking .
Why is it so how can i make sure it is only trigger Once ?
So if i am not using a script I am just using the Logic Brick . So on Property change i wanted to send a message to an object . How do i make sure i send only 1 message? other there is not way without the script ? If i am using a experession to check if a property is equal if it is then i will decrement some value . It seems to always decrement 2 times . How do i solve this ?
create a blender file with Property Sensor to monitor on changed connected to a expression controller which is connected to propertrt acutator to increment an property by 1 when a expression is true . However When the experession is true the actuation seems to be trigger 2 times and the property is increment by 2. How do i only Trigger 1 time and increment by 1 time only . Sorry I have issue attaching a blender file in
Change your property sensor (the one noodled to the Expression Controller) to an Always Sensor, with true Pulse and the same frequency as your other sensor. This may or may not work for whatever purpose you’re putting this toward, but it does make the properties increase correctly, if I understand what you’re trying to do here.
This way, your check for the expression is ‘synced up’ with the pulse that increments ‘prop’. If I had to take a guess, the property sensor is checking that expression as True twice because it’s checking for those conditions more frequently (say, every 10 ticks?) than the property is increasing. If that makes sense.
The simple solution would be to get rid of the Property sensor all-together, and noodle the always sensor to both controllers.
It appears you want to check the expression every time the property changes (hence the property sensor).
Your property changes every time the always sensor pulses.
Why not have that always sensor pulse just check the expression as well? Unless there’s a specific reason you need that other sensor in there…