My code doesn’t work (it is fixed now)

Please try to debug this!
https://c.gethopscotch.com/p/z01gkd5dm
The 2 darker blues don’t work

3 Likes

By the way the colors I’m talking about are the circled ones

1 Like

Hai there @CheckyWecky!

So I’ve checked the code and it appears to me that you haven’t put a rule determining the change in values in the last few colours rows, thus causing the colours not to change later.

This doesn’t appear to happen to just those two colours but every other colour after it.

Hopefully this helped you!

2 Likes

I think it is a WIP. What it is, her HSBs for the circles were different from the trail’s HSBs
https://c.gethopscotch.com/p/z033qrysu
Hope this helps.

1 Like

They appeared to be find tho?
*shrugs *

I’m not good at debugging codes…

2 Likes

Oh wait it works now

1 Like

Okie cool.

glad we could help?

2 Likes

On the original? Idk. You had the trail color coded up to 36, but the when self is tapped set color to __ in the circles were only coded up to the circle with the color of 35

1 Like

Well yeah but I actually just figured it out myself

2 Likes

Huh i dont get that but never mind

1 Like

In the + code, you had a when color=36, but when you look at the circles, the when self is taped set color to __ stops at the circle where it says set color to 35.

1 Like

Well yeah that was the mistake, the circle was supposed to be 36 but it wasn’t because there were two 34s

1 Like

Oooooh, I didn’t see that. I just practically went and started on the next column.

1 Like

https://c.gethopscotch.com/p/z06hpidd4
T1 just remixed it with improvements.

1 Like

Noo again

The lighter yellow colors are weird and I can’t fix it because everything is all weird and it’s too confusing, I’m not sure if it’s possible to fix.

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

Please try to fix it

1 Like

Hai @CheckyWecky,

So I guessed you haven’t found a solution to the bug yet so I looked over your code.
Turns out the lightest yellow, when tapped, was setting the value ‘colour’ to 95 which was the colour for the lightest shade of the ‘lime’ colour. It was easy to fix and I changed the lightest yellow, when tapped, to set the value to 96 which made the right colour trail be drawn.

Common mistake. Sometimes I even do that :)

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

Hope I could help :3

1 Like

thanks madsie

Idk why when i look at the code it seems to be normal when it isn’t actually

1 Like

Just a quick thought–couldn’t you set the HSB values in the circles instead of a single colour value? It might make drawing slightly less laggy.