For example the achievement is "Pass 5 levels in a row without failing"
It's incremental and has five steps.
If a user hits an obstacle, this achievements score should obviously be resetted to 0.
How to to this? I found no such method or anything in the internet.