# Scaling help needed

**URL:** <https://forum.makecode.com/t/scaling-help-needed/28838>\
**Category:** Help\
**Created:** [May 20, 2024, 3:46pm UTC](https://forum.makecode.com/t/scaling-help-needed/28838 "2024-05-20T15:46:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terminator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/terminator/32/14612_2.png) [@Terminator](https://forum.makecode.com/u/Terminator)\
**Post date:** [May 20, 2024, 3:46pm UTC](https://forum.makecode.com/t/scaling-help-needed/28838/1 "2024-05-20T15:46:50Z")

</div>

I am working on a game, but when I cannot figure out how to scale multiple projectiles at once. If possible, I would like a systematic approach to this rather than creating a lot of sprites.  
Link to the game: [https://makecode.com/\_E5v0JChrXLK1](https://makecode.com/_E5v0JChrXLK1)

---

<div class="post-metadata">

**Author:** ![DuOctogonic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/duoctogonic/32/18866_2.png) [@DuOctogonic](https://forum.makecode.com/u/DuOctogonic)\
**Post date:** [May 20, 2024, 4:41pm UTC](https://forum.makecode.com/t/scaling-help-needed/28838/2 "2024-05-20T16:41:40Z")

</div>

The simplest approch would be naming all of the projectiles something different then making that scale code for them individually

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [May 20, 2024, 4:44pm UTC](https://forum.makecode.com/t/scaling-help-needed/28838/3 "2024-05-20T16:44:03Z")

</div>

@Terminator the “on created sprite of kind” block is perfect for this. The code in that block will run once every time a projectile is created. Use it like so:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/419ea3270332e89f79d4411559b90dc16219f15e.png)

Note that instead of using the projectile variable in that event, I dragged the “sprite” variable out of the top of the event block.

---

<div class="post-metadata">

**Author:** ![Terminator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/terminator/32/14612_2.png) [@Terminator](https://forum.makecode.com/u/Terminator)\
**Post date:** [May 21, 2024, 3:45am UTC](https://forum.makecode.com/t/scaling-help-needed/28838/4 "2024-05-21T03:45:50Z")

</div>

Thanks 😃
