How to check the time lasted between clicks under 200 millisecond

By quickly pressing key 2, I want to trigger it under 200 millisecond so I made this:


the first quick pressing works however, there is always another triggered following the successful triggered. what I meant is after the true condition of the second branch if you press 2 again, it will be true condition again on the 2nd branch. the following BP triggered twice.
Does anyone know why this happend? Thanks in advance.

You should not use ‘Now’ to get the time milliseconds for this, else you would run into an issue as milliseconds will be set to zero on each full second. The same applies to seconds with each full minute.

Use the ‘get time seconds’ for this and compare it with its previous value.

2 Likes

This works great! Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.