Score triggering twice unexpectedly

Can you give me a thing how to solve this problem? I want this to trigger only once.
The project is still gonna get approved, but here’s a little vid and screenshots of the code.
https://im4.ezgif.com/tmp/ezgif-4-a18d11a773.gif (video)
Screenshoted literally everything















2 Likes









3 Likes

Make it only trigger once

3 Likes

The repeat forever container might be the cause of your problem. Try adding some debug text (set the text to the value of your variables) to see what’s going on.

1 Like

I said, that it was in approval because I added custom images.

3 Likes

I don’t get it

2 Likes

Wait ok (ima check)

3 Likes

In the meantime, you can use this link. It can play any project regardless of being filtered, unpublished, or custom data.

https://ae-hopscotch.github.io/hs-tools/play-project/?id=

You know those numbers and letters at the end of the project link when you copy and paste it (it appears after c.gethopscotch.com/p/)? That’s the UUID. Add it after the =

1 Like

Issue: When giving pibby the thing he wants, it will set the crying variable to 0. However, the crying didn’t stop. So it became 10 (pibby crying) again.

3 Likes

But after giving him twice, he stopped crying.

3 Likes

https://c.gethopscotch.com/p/12acfv1hg8

3 Likes

Penguin phone

3 Likes

Done, you go log in, go to game store, go to page 2, buy Stuff Toy Care, go to Play-Apps, and play it.

3 Likes

Select pibby or Mickey and get the issue why it doubles score.

the issue why

3 Likes

This will make it easier for me to play. I can also upload this to the project builder in order to see in the code.

1 Like

Just play it

4 Likes

It’s on scene 30

3 Likes

Or scene 29 because they have the same problem

3 Likes

Word of advise: if you have a variable of the same type in two check once if containers, especially if the values are either 1 or 0, combine them in one check else if container. The if would be if the variable = 1, and the else would mean it equals 0. It would also speed the code up by 1 frame. I use check if else blocks a lot. They’re more useful than you think.

I also use broadcast events, which does an event once each time it’s called.

2 Likes

I still don’t get it. Can you just give me your edited code of mine and we’ll finish this?

3 Likes