Unit 3: Lesson 8, Bubble/Level 7 - Tint

Tint is new in Unit 3: Lesson 8, Bubble/Level 7. I read the examples, but I can’t get anything to work. The only way I get anything is to put a number in, but that turns the sprite black: https://studio.code.org/projects/gamelab/QB0DnadvBCNQwnWjm1xMALequOYtYylXcYNq7k6sUDQ
Any help would be appreciated!

Hi @jennifer.hemry,

Check out the documentation for sprite.tint. Your code sets the tint to creature.tint = 1, which doesn’t quite match the way it’s laid out in the documentation.

Hint: your computer is reading “1” as “1,0,0”. There’s a quick fix in there & you should be fine. :slight_smile:

Let us know if you need any more help!
–Michael K.

I have read the documentation for sprite.tint several times. I tried this next, and I’m still not seeing it tint:

That’s odd – it looks like it should be working. I put it in text mode and added quotes around the rbg block, and that worked. It also worked with “red” and with “#FF0000”.

I’ve alerted one of the curriculum writers who should be able to chime in or bring this to the attention of one of the engineers.

Thanks for bringing this issue to our attention!

–Michael K.


This has been sent to the engineering team to look at – the rgb block should be working as you showed in your example.

Thanks again for pointing out the issue!

1 Like