compare numbers

under hopscotcher TidyMoose you can find " Compare numbers’

2 numbers are randomly selected and presented on the screen with each tap
A counter is set to increase each time the 2 numbers are equal

What did I do wrong?
thank you

6 Likes

Uhhh…

1 Like

Did you spell it wrong, @TheBest1Ever?

2 Likes

Can you link the project, plz?

1 Like

How do i link the project?

1 Like

Ah yes, I did. My bad.

@Thunderguy77

https://c.gethopscotch.com/p/zgi5343hs

2 Likes


Try adding this so that the heart always shows the number being added instead of just showing it at the beginning. Let me know if this helps :wink:

Hello
I’ll go see the project and take a look

1 Like

Oof - you put

Text 1 is Number 2
Text 2 is Number 1

Hope that helps

You might need to change that

This post and the post above can make the game work
I tried it :)

1 Like

I remixed it, did what I thought worked.

https://c.gethopscotch.com/p/zgymmk524

@DECODECO yeah I noticed that too. It’s what I fixed. I got rid of “number 2” and just made them each use “number”.

1 Like

Hi @Padgugru

As was previously pointed out

  1. you needed to update the display of the counter variable
  2. there was an inconsistency with respect to which text was setting which number variable

I wanted to also add that you used separate object variables for the counter, number 1, and number 2 when these could have all been the same object variable “number”. This would have helped prevent some of the confusion with fix #2. If you’re not sure what I mean, this may help:
https://forum.gethopscotch.com/t/what-exactly-does-self-do-any-examples/30900/5?u=thinbuffalo

2 Likes