# How to change the size of the sprite in Unit 3 Lesson 1

**URL:** <https://forum.code.org/t/how-to-change-the-size-of-the-sprite-in-unit-3-lesson-1/37179>\
**Category:** Unit and Lesson Discussion\
**Created:** [November 3, 2022, 12:49pm UTC](https://forum.code.org/t/how-to-change-the-size-of-the-sprite-in-unit-3-lesson-1/37179 "2022-11-03T12:49:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brownr3](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@brownr3](https://forum.code.org/u/brownr3)\
**Post date:** [November 3, 2022, 12:49pm UTC](https://forum.code.org/t/how-to-change-the-size-of-the-sprite-in-unit-3-lesson-1/37179/1 "2022-11-03T12:49:18Z")

</div>

I am trying to assist my students with changing the size of the sprite to not take up the whole screen when they create animation. but i am not finding a sprite.scale block.

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [November 3, 2022, 12:54pm UTC](https://forum.code.org/t/how-to-change-the-size-of-the-sprite-in-unit-3-lesson-1/37179/2 "2022-11-03T12:54:36Z")

</div>

@brownr3,

They will get that block in one of the next lessons, but that is a common student request, so what I usually do is show them how to quickly switch to text mode and I have them type one line of code and then switch back to block mode.

sprite.scale=0.5;

Then, back in block mode, they are free to play around with the number to get it the size they want. It’s not usually something I show the whole class, but you could. I usually just show it to the kids who ask and it seems pretty intuitive to them, so it takes me less than a minute and they are happy until the actual block is introduced to them.

Mike

---

<div class="post-metadata">

**Author:** ![islanderjourney](https://avatars.discourse-cdn.com/v4/letter/i/f04885/32.png) [@islanderjourney](https://forum.code.org/u/islanderjourney)\
**Post date:** [November 7, 2022, 9:26pm UTC](https://forum.code.org/t/how-to-change-the-size-of-the-sprite-in-unit-3-lesson-1/37179/3 "2022-11-07T21:26:31Z")

</div>

Hi brownr3,  
You could just type sprite.scale, while replacing sprite with the actual name of the sprite as follows:  
var SpriteName = createSprite(200, 200);  
SpriteName.setAnimation(Animation);  
**SpriteName.scale = 0.1**  
Any number in between 0 and 1 will reduce the size. Any number greater than 1 will make the sprite bigger.
