How can i create a combo system just by text display?

I have coins in my game, I want to create a system to collect them with a text display. If you do it fast, like 2 seconds between one and the other, in the screen you can see the typical x3, x4… combo and if you get 10 a message appears on the screen, if you spend more than 2 seconds the combo restarts itself. Do anyone know how this could be done, just an approach will be fine! Sorry for my bad English.

Hi Eilift,

I quickly created a project so that you can see it clearly.
I would make something like this.

On Component (Hit / Overlap / whatever) you check if it hits or overlaps the coin.
Every time you Hit / Overlap the coin the Delay gets Retriggered.

Now the text appears on your screen with ‘Print String’ but you can change that to a widget or something.
If you want something special happened on the 10th time, just use a ‘Branch’ (If 'Combo Counter = 10).

Of course, there must also be other things in between such as destroying the coin but I don’t know exactly what your project looks like so that part is for you;)

I hope this will help you.

I’ll just add that while this is good, there’s no need for the manual array + get. You can build a string out of the int instead:

280123-capture.png

What if you need a 10000x combo!? :slight_smile:

So the entire thing can boil down to:

Thanks for helping guys! Those are really nice aproaches. I have make an WBP to show it on the screen but 'm having problems destroying the actor, ones I destroy the coin the counter breakes and it keep adding coins without reseting the counter (Memories are the coins and Bp_ch is the character where the integer is set).