Death Counter

In this use case, we'll create a death counter using our counters system.

PlusButton

Step 1. Prepare counter view

Create background layer, add skull illustration, "Deaths Count" text source and source with number of deaths.

PlusButton

Also create "+1 death" text with skill illustration which will be hidden behind the block and will be shown at the time of another death.

PlusButton

Step 2. "Death" chain

Go to Chains section and click on the Plus Button.

PlusButton

Create Change Counter command with +1 change value.

PlusButton

PlusButton

TIP

Chain is created just to increment counter. It won't have any other commands.

Step 3. "Deaths" event

Go to Events section and create Counter Has Changed event.

PlusButton

PlusButton

This event has variables with counter name, value and diff.

Switch to the Conditions tab and add "Counter Names" condition with our Deaths counter name.

PlusButton

PlusButton

Next, we need to update deaths count in text source and animate "+1 Death". Switch back to the Commands tab and create a Set Text command with our Counter Value variable ( ${value} ).

PlusButton

Animate skull icon and "+1 death" text sources using "Move Source" command.

PlusButton

And move it back.

PlusButton

Add a little delay between animations.

PlusButton