Coin system not working

every time i colect a coin the counter disappears https://flowlab.io/game/play/2438136

create a new block named “score settings” move “Coin Saver” to this block
and use the message to send to “score settings” before destroying the coin


now the score disappears because the coin is destroyed when it is touched by the player

2 Likes

even deeper into this the object is getting destroyed before messaging because the destroyer is placed above the message, and flowlab works from the top to bottom

so the destroy is above and going off first, just move the message above it and it will function.

2 Likes

Or use the Destroyer’s output.

then it’d be destroyed first

1 Like

It would still send the message though, wouldn’t it?

1 Like

it’d be destroyed first.

1 Like

Then what’s the Destroyer output for?

1 Like

It probably is useless, but all flowlab commands have an output.

1 Like

The destroy does actually output I believe and would cause a message to send I think (would need to test it), however, someone asked grazer about this before and he said that it’s kind of unreliable. Like maybe it can send a single message, but what about a long string of code that still activates in 1 frame? It’s weird and I’d avoid using it even if it does work.

3 Likes

Interesting, feel like I got told this before but then forgot

Will keep this in mind

could you guys also help me to get it to display how many coins the person has colected

1 Like

use a label

1 Like

how would i use a label to do it

1 Like

put the number of coins into the value input

try it out before asking another question, it’s better to learn yourself than to ask a question which can be answered with a small sentence

1 Like

thanks i got it working