Bug with values in hopscotch


#1

Use this template to make awesome bug reports:

Your username: Dolphin_Coders

What kind of device are you using?: IPad Air 2

1 sentence description of the problem (I was doing trying to make a star invisible but instead flashed___, and then __________ happened):

Steps to make the problem happen:
1.use values to make invisible
2. Flash non stop
….

I expected this to happen: to go invisible

But instead this happened: it flashed

Here’s a sweet screenshot:

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

@MR.GAM3R @Liza @t1_hopscotch @Dylan329 @Anonymous


#2

bruh why did u tag me


#3

I thought you might know + ur on


#4

i dont have hopsoctch havent had it in 2 years no idea how to help sorry


#5

I think I know what is wrong. Say in Star 3’s code, it will set Done to 1, and when it is tapped, it sets Done 2 to 1. The problem is, Done is still set to 1. You will either have to use just Done and have it set to 0 or any number except 1 when tapped, which would mean when Done=0 set invisibility 100%. With that method, you would not need Doen 2. Or, you would have to make Done equal 0 when start is tapped and leave the remaining code. Do I need to explain myself more?


#6


Either way should work


#7

i’ll try that now…


#8

???
Show us the code please.


#9

I worked it out, but basically I had two values that stuffed it up so to fix it I changed it to one value but set by 1 more


#10

Yep. You had two values determining visibility at once.


#11

Yeah, but this has happened numerous times before with the same value, is it me coding it wrong or a glitch in values?


#12

You were coding wrong. You should add a check over the visibility.


Actually,
Make it all one rule, do a repeat forever check if else, and do “visibilty100 else 0”


#13

Ok thanks :smiley:


#14

I recategorized this as Debug my Code since it wasn’t a Hopscotch bug.