Sprite.scale counter pattern working incorrectly


Unit 3, Lesson 9, Level 14 and 15.

When my students try to use the .scale counter pattern with a - to make their sprites increasingly smaller, it has been making them much bigger very fast even when using a 1.

In addition to the correct format of:
sprite.scale = sprite.scale - 1
we have also tried
sprite.scale = sprite.scale + -1
sprite.scale = sprite.scale + 1
sprite.scale + sprite.scale - -1

Each time it jumps to a much bigger size. I don’t have a student example to link to, because they have all taken out those counter patterns as is ruins their animation. Here is an example on my own account : https://studio.code.org/projects/gamelab/zaOHH1Zg-oku5IfzVlW5_TyjLJRxTslbTrEsQ55EWGw



On GameLab you can “mouse over” any of the block and get to the documentation by clicking on “See examples”. From that page:

"Shrink or grow a sprite keeping the height to width ratio the same.

For example, a value of 2 will be make the sprite twice as big and a value of 0.5 will make the sprite half as big. Scaling up may make images blurry. The scale should always be a positive number.

The default scale is 1. All sprite properties can be both accessed and updated."

So you might want to start with smaller numbers (0.05) to increase by rather than 1. Example: green.scale = green.scale - 0.05;. I played around with the project you shared and it grew much slower, but I don’t know exactly what you’re looking for.

Try that out and let us know if it worked and if you have further questions!