User variable saves the wrong number

Use this template to make awesome bug reports:

Your username: C.H.Rissole

What kind of device are you using?: iPad13,1

1 sentence description of the problem (I was doing _________, and then __________ happened): I was making a saveable art pad but it saves the wrong colour.

Steps that the Hopscotch team can take to reproduce my problem every time:

  1. Make a project like this.
  2. Tap the screen, get a random number
  3. Restart. It shows the same number
  4. Tap ‘edit’. Tap play. Do this step twice
  5. It shows 100 instead of the number you have gotten.
    It’s probably because of the Set variable to minimum and maximum code.

I expected this to happen:
Show the correct number

But instead this happened:
It shows 100.

Here’s a sweet screenshot:
It’s at the thumbnail of the project linked above.

3 Likes

12 posts were merged into an existing topic: User variables not working correctly with minimum block

The reason is that user variables can only store strings.

3 Likes