This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.
With this method you can create a combo or multiplier based system. In this example each time an enemy is hit, it adds 1 to the score multiplier. If the game goes 2 seconds without an enemy getting hit, the multiplier resets to 1.
Watch on Youtube