Coins random spawning with a counter and sound when collected

i want Coins to randomly spawn with a counter when you collect them and to show how many spawned and how many you managed to collect and sound when collected :slight_smile:

The player needs to have a collision connected to an expression’s EVAL port

Then the output of that expression goes into its own A port.

Go into the expression and set it to


Set the bottom text box to “A+B”

Connect the output into a label

Set the label as 0

You may also use another label “coins:”

how do i make the coins respawn randomly spawn after they are collected?

Instead of using a destroyer,

Use 2 randoms and a position